Sirach 44:17

Noah was found perfect and righteous; in the time of wrath he kept the race alive; therefore a remnant was left on the earth when the flood came.