Book of Jubilees 5:19

And as for all those who corrupted their ways and their thoughts before the flood, no man's person was accepted save that of Noah alone; for his person was accepted in behalf of his sons, whom (God) saved from the waters of the flood on his account; for his heart was righteous in all his ways, according as it was commanded regarding him, and he had not departed from aught that was ordained for him.

Background and history of Book of Jubilees, and issues with this book.

R. H. Charles, The Book of Jubilees, in The Apocrypha and Pseudepigrapha of the Old Testament, vol. 2 (Oxford: Clarendon Press, 1913). Public domain in the United States (published 1913). Charles died in 1931, so the book is in the public domain in the United Kingdom. The verse text is the Joshua Williams transcription at pseudepigrapha.com. Jubilees 1:8 and 1:9 are divided at the break in the 1902 Clarendon scan (archive.org bookofjubileesor00char), where verse 9 begins “For they will forget.” That scan also numbers the angel-of-the-presence sentence as 1:29. Editorial brackets in the translation are Charles’s.