“The LORD said to Noah, “Come with all of your household into the ship, for I have seen your righteousness before me in this generation.”Genesis 7:1 · WEBU
The LORD tells Noah to enter the ship with his household because Noah has been seen as righteous before God in that generation.