The Bible states that God saw Noah to be righteous in his generation before him for Genesis 7:1 reads “for thee have I seen righteous before me in this generation.”
How was Noah righteous before God? It was by faith. Noah believed God of the impending doom and moved with fear, he prepared the ark (did all that God commanded him to – Genesis 6:22) and became the heir of the righteousness which is by faith. (Hebrews 11:7). Not only was Noah just proclaimed as being righteous but he also acted on his faith by being the preacher of righteousness (2 Peter 2:5).

Points to ponder:
The Bible states that one of the descendants of Noah, Abram was imputed the righteousness of God because he believed God, just as his ancestor Noah did. If God was to see you and me, would he see us as he saw Noah – one who is righteous before him in this generation?

Genesis 7:1 (KJV)
7 And the Lord said unto Noah, Come thou and all thy house into the ark; for thee have I seen righteous before me in this generation.

Hebrews 11:7 (KJV)
7. By faith Noah, being warned of God of things not seen as yet, moved with fear, prepared an ark to the saving of his house; by the which he condemned the world, and became heir of the righteousness which is by faith.