[Another interpretation] (of Psalms 36:7): "Your righteousness is like the mighty mountains." Rabbi Judah bar Simon said: The righteousness that You did with Noah in the ark is "like the mighty mountains," [as it is said] (Genesis 8:4): "And the ark came to rest in the seventh month, [on the seventeenth day of the month,] upon the mountains of Ararat." And the judgments that You did with his generation, and with which You dealt strictly with them down to the great deep, [as it is said] (Genesis 7:11): "On that day all the fountains of the great deep burst forth." And when You remembered him, You did not remember him alone, as it is said (Genesis 8:1): "And God remembered Noah, and every living thing, and every beast." Hence: "Man and beast You save, O LORD" (Psalms 36:7).
Noah in the Ark as God's Righteousness Like the Mighty Mountains
Midrash Tanchuma Buber, Emor 8:1
[ד"א] צדקתך כהררי אל. אמר ר' יהודה בר סימון צדקה שעשית עם נח בתבה כהררי אל, [שנאמר] ותנח התבה בחדש השביעי [בשבעה עשר יום לחדש] על הרי אררט (בראשית ח ד), ומשפטים שעשית עם דורו ודקדקת עמהם עד תהום רבה, [שנאמר] ביום הזה נבקעו כל מעינות תהום רבה (שם ז יא), וכשהזכרתו לא לבדו נזכרת, שנאמר ויזכר אלהים את נח ואת כל החיה ואת כל הבהמה (שם ח א), הוי אדם ובהמה תושעי ה'.