Why was Sodom and Gomorrah destroyed?
Gen 18:20 And Yah said, Because the cry of Sodom and Gomorrah is great, and because their SIN (trangressing the law) is very grievous;
Gen 18:21 I will go down now, and see whether they have done altogether according to the cry of it, which is come unto me; and if not, I will know.
Man was trangressing the law of Yah before mankind was separated into nations.
Gen 7:2 Of every clean beast thou shalt take to thee by sevens, the male and his female: and of beasts that [are] not clean by two, the male and his female.
Yah was telling Noah to take the beast upon the ark according to the clean and unclean laws that are found in Leviticus 11.
Genesis 38:8
8 And Judah said unto Onan, Go in unto thy brother's wife, and marry her, and raise up seed to thy brother.
9 And Onan knew that the seed should not be his; and it came to pass, when he went in unto his brother's wife, that he spilled it on the ground, lest that he should give seed to his brother.
The above passage of scripture pertains to the law of going into your dead brothers wife and having children in the name of your brother. This law was in the earth before Moses pronounced it to the children of Israel.
Deuteronomy 25:5-6 5 If brethren dwell together, and one of them die, and have no child, the wife of the dead shall not marry without unto a stranger: her husband's brother shall go in unto her, and take her to him to wife, and perform the duty of an husband's brother unto her.
6 And it shall be, that the firstborn which she beareth shall succeed in the name of his brother which is dead, that his name be not put out of Israel.
The laws are what made Abraham righteous:
Genesis 26:5 Because that Abraham obeyed my voice, and kept my charge, my commandments, my statutes, and my laws.
Abraham knew the laws of Yah, you Egyptologist believe he learn from the Egyptians. Not so, He was taught the ways of Yah by Noah son Shem as it tells us in the book of Jasher.
NOTE: THE BOOK OF JASHER WAS A BOOK THAT WAS REMOVED FROM THE SCRIPTURES, IT'S MENTION TWICE IN THE STANDARD BIBLE. IN THE BOOKS OF JOSHUA AND 2nd SAMUEL
Joshua 10:13 And the sun stood still, and the moon stayed, until the people had avenged themselves upon their enemies. Is not this written in the book of Jasher? So the sun stood still in the midst of heaven, and hasted not to go down about a whole day.
2Sam 1:18 (Also he bade them teach the children of Judah the use of the bow: behold, it is written in the book of Jasher.)
The book of Jasher Chapter 9
5 And when Abram came out from the cave, he went to Noah and his son Shem, and he remained with them to learn the instruction of YAH and his ways, and no man knew where Abram was, and Abram served Noah and Shem his son for a long time.
6 And Abram was in Noah's house thirty-nine years, and Abram knew YAH from three years old, and he went in the ways of the YAH until the day of his death, as Noah and his son Shem had taught him; .........
The Laws or instructions have been with man from the beginning, but man transgressed those laws just as he continues to do today. He even took some and applied them to his idol gods, this is what we see in Babylon, Egypt, and other nations.
When mankind was scattered across the globe by the hands of Yah, they only had their languages confounded not their minds. So they took that "Mystery Babylonian" mind set with them, which is to mix the truth with the lie.
The Egyptians and Babylonians only took what was already given and corrupted it.
Not only does the book of Jasher inform us of how father Abraham came to know Yah and his truth. But look at what else it says. The book of Jasher says man was trangressing Yah's law..
.....and all the sons of the earth in those days greatly transgressed against YAH, and they rebelled against him and they served other gods, and they forgot YAH who had created them in the earth; and the inhabitants of the earth made unto themselves, at that time, every man his god; gods of wood and stone which could neither speak, hear, nor deliver, and the sons of men served them and they became their gods.
Look at Abraham keeping a law of Yah, that he was taught, this law was given to the Children of Israel. But it existed before the Israelites became a nation.