Homosexuality in the Middle East has been traced back to as early as during the Mesopotamian Civilization.
Mesopotamian "Epic of Gilgamesh" has been said to contain some of the earliest written accounts of fictional homosexuality between two males.
Accounts of Prostitution temples that had male servants serve other males, although were stigmatized.
Ancient egyptian literature documents the first example of Royal-Homosexuality between Pharaoh Pepy II and his general Sisine.
Also the story of David and Jonathan in the Hebrew Bible Book featured above.
Islam Arrival
Did not specify homosexuality as a sexual identity.
Depended on whether the person was the "giver" or "receiver."
Male/Male penetration was used to describe mens rivals as weak (would talk about giving their rival their penis which meant their rival was weaker and the guy giving his penis would be disgusted)
"the people of lot" was a phrase used to describe pederasts (men who liked boys)
Same-Sex relations were prevalent in Muslim societies and the Ottoman Empire.
In Muslim civilizations mutual erotic attraction was a natural emotion and did not come with any feelings of guilt or shame.
Although natural emotion, could not be discussed, and the phenomena could not even be acknowledged.
Ottoman Empire had strict laws against same-sex relations, but were rarely enforced.