Here’s something interesting regarding the antiquity of the laws of Noah for Gentiles. From the book, Gad the Seer that I have referred to previously. Apologies for the length.
9. King Hiram of Tyre
Between 2908-2924 AM, 1017-1001 BC
1Hiram king of Tyre sent messengers unto David saying: 2“ I know that the LORD your God is the one true God, so now deal with me as a true brother and teach me the Law of your God, for I will worship Him all the days of my life.” 3Then the messengers came to David with an offering in their hands for the LORD and for David. They told him everything that Hiram had said and presented him with the offerings. 4And David replied to Hiram: 5“ Go and tell my brother, Hiram: ‘This is what David, your brother, says: ‘Reverence the LORD, creator of heaven and fire, the sea and the earth, the wet and the dry, the heat and the cold, the mineral and the vegetation, the living and the speaking, 6the planets, the Pleiades and Orion, the sun and the moon, the substantial and the spiritual, the wandering stars, the senses, and everything. 7These were all created without a blemish by El Shaddai whose name is Yahweh. 8If you do this and observe the commandments that were ordered to the children of Noah [Noahide Laws], your father, then God will bless you all the days of your life. 9We are both His allies; but we are different from you by the Law of truth, sealed by the seal of Shaddai, called children of the true God. 10We must therefore obey the whole Law that HaShem commands of us, saying: ‘And you shall be unto Me a kingdom of priests, and an holy nation. These are the words which you shall speak unto the children of Israel.’ Exodus 19: 6 11But He has not dealt the same way with any other nation as He has with us. He did not choose us for any other reason than the great love that He has for us [by grace not works].” 12The messengers then returned to Hiram their king and told him everything that King David had told them. 13And Hiram rejoiced with all his heart and called all his princes and servants and said to them: 14“ Tyrians and Sidonians, listen carefully to what I am about to tell you. 15Have reverence and respect for El Shaddai, who is the God of Israel. He made everything by speaking and by the breath of His mouth; and who will tell Him what He can do? For He is one. 16Repeat after me: ‘Blessed is the LORD God of Israel who chooses His people, and blessed is David, His servant, king of His people, and blessed is Israel whom the LORD has chosen to be His inheritance. 17We would be blessed to simply be the servants of the children of Israel that are called children of the LORD, their God.’” 18And all his princes and his servants replied: “Amen, may it be so.” 19And Hiram lifted up his voice and said: “I have seen, but not now, I have beheld, but not nigh: there shall step forth a sun from David, and a moon shall rise out of the house of Judah, and shall smite all the children of Ham, and break down all the children of Japheth, and he will possess all the kingdoms of the world.” Variant of Numbers 24: 17-18 And who is like the LORD, God above all gods? 20And who is like Israel a people above the nations? May our end be like theirs.” 21When the LORD heard what Hiram had said, He was very pleased with him. 22And the LORD said unto Gad, the seer of David: 23“ Go unto my servant and tell him the message that I gave you.” 24And Gad, the one in whose hand was the word of the LORD, came to David, and said, “Thus says the LORD God of Hosts: ‘I have heard what Hiram, king of Tyre, has said and what his princes and servants have said, and I am very pleased. 25Therefore I will give him and his people a heart of wisdom and understanding to prepare My house where I shall put My name, and that will cause his kingdom to grow, for I have chosen them and will not reject them.’” 26And David said to Gad: “Now I know that the LORD our God rewards all His creatures and all the works He has created with goodness, because He is a God of mercy, who dwells on high and looks after the lowly, and whoever is banished will not remain an outcast from Him. Blessed be the LORD forever; Amen, and Amen. 27For as the heaven is high above the earth, so great is His mercy toward them that fear Him and towards His works. 28Bless the LORD, all you His works, in all His places of His dominion. Bless the LORD, O my soul. Hallelujah.”
Notice that in the mention of the commandments that were given to the children of Noah, there is no mention of 7 laws, just the laws commanded to Noah and his children.