Tafsir of Surah Al-A'raaf 7:28
﴿وَإِذَا فَعَلُوا فَاحِشَةً قَالُوا وَجَدْنَا عَلَيْهَا آبَاءَنَا وَاللَّهُ أَمَرَنَا بِهَا قُلْ إِنَّ اللَّهَ لَا يَأْمُرُ بِالْفَحْشَاءِ أَتَقُولُونَ عَلَى اللَّهِ مَا لَا تَعْلَمُونَ﴾
Translation of the meaning
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?"
English Translation - Noor International Center — v1.1.2 · QuranEnc.comThe words of the two imams are given in their original Arabic, verbatim, with references.
Shaykh al-Islam Ibn Taymiyyah
والفاحشة أريد بها كشف السوآت«مجموع الفتاوى» 15/8فعلم أنه لا يجوز عليه الأمر بالفحشاء؛ وذلك لا يكون إلا إذا كان الفعل في نفسه سيئا فعلم أن كلما كان في نفسه فاحشة فإن الله لا يجوز عليه الأمر به«مجموع الفتاوى» 15/8