وَإِذَا فَعَلُوا۟ فَـٰحِشَةً قَالُوا۟ وَجَدْنَا عَلَيْهَآ ءَابَآءَنَا وَٱللَّهُ أَمَرَنَا بِهَا ۗ قُلْ إِنَّ ٱللَّهَ لَا يَأْمُرُ بِٱلْفَحْشَآءِ ۖ أَتَقُولُونَ عَلَى ٱللَّهِ مَا لَا تَعْلَمُونَ
wa-idhā faʿalū fāḥishatan qālū wajadnā ʿalayhā ābāanā wal-lahu amaranā bihā qul inna l-laha lā yamuru bil-faḥshāi ataqūlūna ʿalā l-lahi mā lā taʿlamūna
And when they commit an immorality, they say, "We found our fathers doing it, and Allāh has ordered us to do it." Say, "Indeed, Allāh does not order immorality. Do you say about Allāh that which you do not know?"
— Saheeh International
Yet when [these people] do something disgraceful, they say, ‘We found our forefathers doing this,’ and, ‘God has commanded us to do this.’ Say [Prophet], ‘God does not command disgraceful deeds. How can you say about God things that you do not know [to be true]?’
— M. A. S. Abdel Haleem
And when they commit a Fâhishah (evil deed, going round the Ka‘bah in naked state, and every kind of unlawful sexual intercourse), they say: "We found our fathers doing it, and Allâh has commanded it on us." Say: "Nay, Allâh never commands Fâhishah. Do you say of Allâh what you know not?"
— Muhammad Muhsin Khan & Muhammad Taqi-ud-Din al-Hilali

