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.
Ma'arif al-Qur'an
Mufti Muhammad Shafi
In the third (109) and the fourth (110) verses, Masjid Dirar (the harmful mosque) made by the hypocrites has been condemned as it has to be when compared with a masjid that is blessed. This has been accomplished through the use of a similitude. The surface of the land on which they were laying the foundation of their ` masjid' has been likened to a landmass that has been corroded on the inside by flowing water. The topsoil looks solid and smooth. Now, if someone starts building there, it is obvious that the whole thing would collapse instantly. Similarly, the foundation of this Masjid Dirar was inherently unstable. The result was that it collapsed and went right into the fire of Jahannam. The expression ` collapsed into the fire of Jahannam' could be figurative in its sense - in that it smoothed out the way of Jahannam for its makers. Some others have taken it in the real sense - in that the masjid, when made to collapse, went into the Jahannam. Allah knows best.
There are two foundations for the building of life. One is piety (taqwa) and the other is self-centredness. In the first case the whole structure of life is built on a firm foundation of being God-fearing. In this case all the activities of the individual are influenced by one central thought. That is, he has to be accountable for all his words and deeds to a Being Who is aware of all things, whether open or hidden, and Who is to award punishments or rewards accordingly. One who considers himself accountable to God has erected his building on a solid foundation that will never be shaken. In contrast to him is the man who builds on the crumbling edge of an abyss. Free from all fears and apprehensions, he leads a self-oriented life in the world. He does not accept any restrictions, and speaks and acts at will. The example of the life of such a person can be compared to a building which has been constructed on the brink of a gorge which is about to cave in; all of a sudden it will collapse, carrying all the building’s residents down into its depths.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.