Surah At-Tawbah, ayah 108

9:108

لَا تَقُمۡ فِيهِ أَبَدٗاۚ لَّمَسۡجِدٌ أُسِّسَ عَلَى ٱلتَّقۡوَىٰ مِنۡ أَوَّلِ يَوۡمٍ أَحَقُّ أَن تَقُومَ فِيهِۚ فِيهِ رِجَالٞ يُحِبُّونَ أَن يَتَطَهَّرُواْۚ وَٱللَّهُ يُحِبُّ ٱلۡمُطَّهِّرِينَ ١٠٨

Lā taqum fīhi abadal lamasjidun ussisa 'alat-taqwā min awwali yawmin ahaqqu an taqūma fīhi fīhi rijālun yuhibbūna an yatatahharū wallāhu yuhibbul-muttahhirīn

Do not stand [for prayer] within it - ever. A mosque founded on righteousness from the first day504 is more worthy for you to stand in. Within it are men who love to purify themselves; and Allāh loves those who purify themselves.

Footnotes

504 This description is of the Qubā’ mosque.