Noah first sends out a raven, which goes to and fro Genesis 8:6–7. He then sends out a dove multiple times, including one return with an olive leaf and a final flight where it does not return Genesis 8:8–12.
After waiting forty days, Noah takes an active step to check conditions outside the ark. He opens a window he had made and sends out a raven. The bird does not return in a simple, final way; instead it keeps going out and coming back, or ranging to and fro, while the floodwater continues to recede. These verses sit in the “waters recede” phase of the flood story, after the ark has come to rest and the narrative begins to mark time in stages. The forty-day note functions as a hinge: Noah has been waiting, watching, and now tests the outside world.
Genesis 8:6–7 shows Noah shifting from waiting to testing conditions outside the ark. After a stated period (“forty days”), he opens a window he had made and sends out a raven. The raven’s behavior is described as ongoing (“back and forth”) during the period when the floodwaters are still in the process of drying.
A careful answer keeps the immediate passage, the book's argument, and the whole-Bible storyline together, so the question is answered in context instead of as a detached idea.
Start with Genesis 8:6-7, then read the surrounding section so the answer stays connected to the passage's flow.
6It happened at the end of forty days, that Noah opened the window of the ark which he had made,
7and he sent forth a raven. It went back and forth, until the waters were dried up from off the earth.