וַֽיְהִ֕י מִקֵּ֖ץ אַרְבָּעִ֣ים י֑וֹם וַיִּפְתַּ֣ח נֹ֔חַ אֶת־חַלּ֥וֹן הַתֵּבָ֖ה אֲשֶׁ֥ר עָשָֽׂה׃
And it came to pass at the end of forty days, that Noah opened the window of the ark which he had made.
Read midrashic interpretation of Genesis 8:6: and classical rabbinic exegesis.