Murtada, though, said that he found a different account in an old book, most of whose pages had been torn out. He found himself shocked that it told such a longer and more involved story of the Flood, and one missing its Egyptian elements (barring one reference to Philemon). It is extremely surprising to see that the account is a very close parallel to the story of Philemon and Surid, familiar from pyramid legends, with their parts replaced by new figures. To briefly recap, the legend of Surid states that the antediluvian king of Egypt had disturbing dreams of earthquakes and birds, which led him to seek out the advice of Philemon and the priests of Egypt, who warned him of the twin judgments of Flood and Fire. As a result, he built the pyramids to safeguard himself, his family, and the sciences. A second version of the same story gives similar dreams to Philemon, who then contrives to escape to Babylon as a double agent secretly trying to undermine the pharaoh’s plot to destroy Noah. (Full translations are here and here.)
Compare this to the story Murtada reports about Lamech, father of Noah, and Mechavel and Darmasel, kings of Babylon:
… the Patriarch, the Father of Noah, (Gods peace be with him) dreamt that he saw issuing out of his Mouth a fire, which burnt the whole Terrestrial World. He thereupon awaked much astonished. Some days after he dreamt again, that he was upon a Tree in the midst of a great Sea without Shores, which also astonish’d him very much. After that there being born to him a Son, the Prophet of God Noah, the good tidings of it spread over the whole Earth; and the Priest Galoumas related it immediately to Mechavel the Son of Darmasel, assuring him further that the Terrestrial world should perish in his time, that is, in the time of Noah, whose life was to be very long. The Priests knew also by their Sciences, that there would happen a Deluge, which should drown the Earth and its Inhabitants; but they always hoped to secure themselves from what should happen with King Darmasel. The King therefore commanded that there should be strong Castles built on the tops of the Mountains, that they might retire thither and be safe as they imagined. They built seven Castles of that kind, according to the number of their Idols, whereof they gave them the names, and graved thereon their Sciences. (trans. J. Davies)
The seven idols are pretty clearly meant to be the seven planets known to the ancients (the sun, the moon, and the five visible planets). However, this doesn’t tell us much since the Philemon version contains seven ranks of priests for the same seven planets; all it suggests is that there is a Late Antique undercurrent to this story. However, nothing like it shows up in any source I’m familiar with. The detail about burning the ark has a parallel in the Egyptian Nag Hammadi corpus, where in Hypostasis of the Archons we read that a daughter of Adam named “Norea came to him [Noah], wanting to board the ark. And when he would not let her, she blew upon the ark and caused it to be consumed by fire. Again he made the ark, for a second time” (trans. Bentley Layton), but what connection if any I could not say.