Sura Al-A'raaf

7:28

وَإِذَا فَعَلُوا۟ فَٰحِشَةًۭ قَالُوا۟ وَجَدْنَا عَلَيْهَآ ءَابَآءَنَا وَٱللَّهُ أَمَرَنَا بِهَا ۗ قُلْ إِنَّ ٱللَّهَ لَا يَأْمُرُ بِٱلْفَحْشَآءِ ۖ أَتَقُولُونَ عَلَى ٱللَّهِ مَا لَا تَعْلَمُونَ

och när de begår skamlösa handlingar, säger de: "Så gjorde våra fäder och Gud har [själv] påbjudit det." Säg: "Nej, Gud påbjuder inte skamlösa handlingar. Påstår ni om Gud sådant som ni inte kan veta?"

Tafsir 7:28

If the idolaters commit an indecent act, they defend it, saying they found their fathers doing it and that Allah had commanded them to do it. Tell them O Muhammad: 'Indeed Allah does not command the wrong, rather, He forbids it, so how can you claim such a thing about Him? Or are you O Idolators inventing things about Allah, saying what you do not know about Him?'