Not true, only recently, most of their history they were openly man loving and proud.
At the height of the Islamic Golden Age – a period from the mid-8th century to the mid-13th century when Islamic civilization is believed to have reached its intellectual and cultural zenith – homosexuality was openly spoken and written about. Abu Nuwas (756-814), one of the great Arab classical poets during the time of the Abbasid Caliphate, wrote publicly about his homosexual desires and relations. His homoerotic poetry was openly circulated right up until the 20th century.
Mahmud of Ghazni, a towering sultan of his time (971-1030), was actually held up as an ideal for, among other things, deeply loving another man, Malik Ayaz.
Mughal Emperor Babur wrote of his attraction to a boy in the camp bazaar in his 16th-century autobiography – a celebrated work of literature in the medieval Muslim world.
In the 18th century, Dargah Quli Khan, a nobleman from the Deccan travelling to Delhi, wrote a fascinating account of the city called theMuraqqa-e-Dehli (The Delhi Album), which described just how mundane homosexuality was in Indo-Islamic society. At the public bazaars, male prostitutes solicited openly and Khan spoke admiringly of how “young good-looking men danced everywhere and created great excitement”.
Till the 19th century, Muslims treated homosexuality as a part and parcel of life, so much so that students were exposed to romantic stories of homosexual love.
Hamza Yusuf have characterized the outlawing of homosexuality in the Shariat as a sort of “legal fiction”.