Such statement is not in the Quran.
The following is quoted from the interpretation by Mohammed-Ali Hassan Al-Hilly:
"About the homosexual act (or the Sodomy): it is not mentioned in the Quran because the Arab in the pre-Islam ignorance period had not such act;
but the statement for the homosexual act is mentioned in the Torah, Book of Levites, chapter twenty:
(If a man lies with a male, as with a woman, both of them have committed an abomination: they shall surely be put to death; their blood shall be upon them.)
While, in the Islam, their statement is up to the judge who may sentence them to either lashing or imprisonment, as appropriate to the age of either of them: whether he is young or old, married or not married.
While concerning the lesbian act: either of the females shall be lashed with ten lashes.