God remembered Noah, as well as all the wildlife and all the livestock that were with him in the ark. God caused a wind to pass over the earth, and the water began to subside.
References for Genesis 8:1
The sources of the watery depths and the floodgates of the sky were closed, and the rain from the sky stopped.
The water steadily receded from the earth, and by the end of 150 days the waters had decreased significantly.
The ark came to rest in the seventh month, on the seventeenth day of the month, on the mountains of Ararat.
References for Genesis 8:4
The waters continued to recede until the tenth month; in the tenth month, on the first day of the month, the tops of the mountains were visible.
After 40 days Noah opened the window of the ark that he had made,
and he sent out a raven. It went back and forth until the waters had dried up from the earth.
Then he sent out a dove to see whether the water on the earth's surface had gone down,
but the dove found no resting place for her foot. She returned to him in the ark because water covered the surface of the whole earth. He reached out and brought her into the ark to himself.
So Noah waited seven more days and sent out the dove from the ark again.
When the dove came to him at evening, there was a plucked olive leaf in her beak. So Noah knew that the water on the earth's surface had gone down.
After he had waited another seven days, he sent out the dove, but she did not return to him again.
In the six hundred and first year, in the first month, on the first day of the month, the water [that had covered] the earth was dried up. Then Noah removed the ark's cover and saw that the surface of the ground was drying.
References for Genesis 8:13
By the twenty-seventh day of the second month, the earth was dry.