Water should primarily run away from the foundation and only secondarily soak in.
Depending on the terrain you may need to make precision level measurements to be sure you have some slope away from the house. If you err the other way, you may be going down so fast you need to excavate portions of the yard to keep the slope going.
That's the way I see it. Had to slope it away from the house and one of the barns a few years ago.
Used the DR Grader, and it still took boo-ku passes.
A lot of heavy trucks in this year, needs it again this fall.
Just watch the yard after a heavy rainfall, take pics, and do it again.