أَفَمَنْ أَسَّسَ بُنْيَٰنَهُۥ عَلَىٰ تَقْوَىٰ مِنَ ٱللَّهِ وَرِضْوَٰنٍ خَيْرٌ أَم مَّنْ أَسَّسَ بُنْيَٰنَهُۥ عَلَىٰ شَفَا جُرُفٍ هَارٍۢ فَٱنْهَارَ بِهِۦ فِى نَارِ جَهَنَّمَ ۗ وَٱللَّهُ لَا يَهْدِى ٱلْقَوْمَ ٱلظَّٰلِمِينَ
Maka apakah orang-orang yang mendirikan mesjidnya di atas dasar takwa kepada Allah dan keridhaan-(Nya) itu yang baik, ataukah orang-orang yang mendirikan bangunannya di tepi jurang yang runtuh, lalu bangunannya itu jatuh bersama-sama dengan dia ke dalam neraka Jahannam. Dan Allah tidak memberikan petunjuk kepada orang-orang yang zalim.
Tafsir Ibn Kathir
The Difference between Masjid At-Taqwa and Masjid Ad-Dirar
Allah the Exalted says that the Masjid that has been built on the basis of Taqwa of Allah and His pleasure is not the same as a Masjid that was been built based on causing harm, disbelief and causing division among the believers, and as an outpost for those who warred against Allah and His Messenger . The latter built their Masjid on the edge of a steep hole,
فِى نَارِ جَهَنَّمَ وَاللَّهُ لاَ يَهْدِى الْقَوْمَ الظَّـلِمِينَ
(into the fire of Hell. And Allah guides not the people who are the wrongdoers.), Allah does not bring aright the works of those who commit mischief. Jabir bin `Abdullah said, "I saw the Masjid that was built to cause harm with smoke rising up from it, during the time of the Messenger of Allah ﷺ." Allah's statement,
لاَ يَزَالُ بُنْيَانُهُمُ الَّذِى بَنَوْاْ رِيبَةً فِى قُلُوبِهِمْ
(The building which they built will never cease to be a cause of doubt in their hearts) and hypocrisy. Because of this awful action that they committed, they inherited hypocrisy in their hearts, just as those who worshipped the calf were inclined to adoring it. Allah said next,
إِلاَّ أَن تَقَطَّعَ قُلُوبُهُمْ
(unless their hearts are cut to pieces.) until they die, according to Ibn `Abbas, Mujahid, Qatadah, Zayd bin Aslam, As-Suddi, Habib bin Abi Thabit, Ad-Dahhak, `Abdur-Rahman bin Zayd bin Aslam and several other scholars of the Salaf.
وَاللَّهُ عَلِيمٌ
(And Allah is All-Knowing,) of the actions of His creation,
حَكِيمٌ
(All-Wise.) in compensating them for their good or evil actions.