General Context
Having declared release from treaties whose grounds for remaining in force had fallen away, exposed the polytheists’ treachery and obstruction of Allah’s way, distinguished faithful treaty partners from aggressors who broke their word, and directed believers toward a test of their sincerity in striving and the purity of their allegiance, Surat At-Tawbah turns to another matter closely bound up with its purposes and with the place around which so many events of the prophetic mission and the conflict unfolded. That place is the Sacred Mosque, the Ancient House of Allah, which Allah made a support for the people and whose foundations Abraham and Ishmael raised upon monotheism. Over the centuries, the hands of polytheism reached into it. Idols were brought inside, and what remained of Abraham’s rites became mingled with forms of worship and customs introduced in the age of ignorance that contradicted the foundations of his pure faith. Here the Qur’an distinguishes the honor of the House from the honor of belonging to it, tending its rites outwardly from maintaining it in the true sense intended by Allah, and the social standing that certain Quraysh leaders acquired through their guardianship of the Sanctuary from the religious qualification to serve a house founded for the worship of Allah alone.
Quraysh took pride in being the people of the Sanctuary and the custodians of the Kaʿbah. They watered and fed the pilgrims and preserved the standing the House had inherited among the Arab tribes. These activities did yield social benefits. Giving pilgrims water helped those who needed it. Feeding them showed hospitality, and caring for the House served certain interests in the safety and orderly administration of the Sanctuary. Yet the Qur’an traces their claims to something prior to services and offices. It asks what belief underlies such maintenance and for what purpose the House was established. The Sacred Mosque is no historical monument deriving honor from those who run it, and no tribal landmark drawing its sanctity from the rule of Quraysh. It is Allah’s House, where Allah alone is to be worshiped. When the worship of idols encroaches on the worship of its Creator, outward service can no longer suffice to establish a rightful claim to it, and preserving its walls cannot be equated with preserving its mission.
Hence the Qur’anic ruling, expressed as an unequivocal denial of qualification, ﴿مَا كَانَ لِلْمُشْرِكِينَ أَنْ يَعْمُرُوا مَسَاجِدَ اللَّهِ﴾ ⟨It is not for the polytheists to maintain the mosques of Allah⟩ (9:17). This does not deny that polytheists historically carried out building, maintenance, and service. The polytheists of Quraysh did help maintain the Kaʿbah and attend to certain affairs of the Sanctuary. It denies that they have a legitimate religious claim to administer Allah’s houses while practicing polytheism and openly observing its rites. A mosque derives its sanctity from its relationship to Allah. Its religious maintenance rests on more than its physical condition. It rests on that for which it was made a mosque in the first place, the affirmation of Allah’s oneness, worship, and the observance of religious rites.
Imam al-Ṭabarī put this succinctly.
“He, exalted be His remembrance, is saying that it is unfitting for the polytheists to maintain the mosques of Allah while bearing witness against themselves to disbelief. The mosques are maintained so that Allah may be worshiped there, not so that He may be disbelieved in. Whoever disbelieves in Allah has no proper claim to maintain the mosques of Allah.”
Jamiʿ al-Bayan ʿan Taʾwil Ay al-Qurʾan — Muḥammad ibn Jarir al-Ṭabarī
Reports on the occasion of the verse’s revelation concern al-ʿAbbas ibn ʿAbd al-Muttalib, may Allah be pleased with him, before he embraced Islam. Taken prisoner at the Battle of Badr, he was among the Quraysh captives some Muslims reproached for their polytheism and for fighting the Prophet, peace and blessings be upon him. ʿAli ibn Abi Talib, may Allah be pleased with him, was among those who addressed al-ʿAbbas on the matter. Al-ʿAbbas cited the good that Quraysh did through tending the Sanctuary, watering the pilgrims, keeping the keys to the Kaʿbah, and securing the release of captives. In some reports he says, “Do you recall our misdeeds and keep quiet about our good deeds?” Then came the verses denying the polytheists’ claim to maintain Allah’s mosques, followed in verse nineteen by a comparison between giving water to pilgrims and maintaining the Sacred Mosque, on the one hand, and believing in Allah and the Last Day and striving in His cause, on the other.
Muqatil ibn Sulayman relates this story in his commentary.
“Al-ʿAbbas, Shayba, and others were taken prisoner on the day of Badr. Some of the Emigrants, among them ʿAli ibn Abi Talib, as well as Helpers and others, approached, reviled them, and reproached them for their polytheism. ʿAli ibn Abi Talib began censuring al-ʿAbbas for fighting the Prophet, peace and blessings be upon him, and for severing ties of kinship, and spoke to him harshly. Al-ʿAbbas said to him, ‘Why do you recall our misdeeds and keep quiet about our good deeds?’ They said, ‘Have you any good deeds?’ He replied, ‘Yes. Our reward is surely greater than yours. We maintain the Sacred Mosque, hold the keys to the Kaʿbah, water the pilgrims, and secure the release of the captive.’ They boasted of these things to the Muslims.”
Tafsir Muqatil ibn Sulayman — Muqatil ibn Sulayman al-Balkhi
Muqatil’s account gives no chain of transmission and therefore cannot establish every detail of the report, including the identification of Shayba as one of the captives. Historical accuracy also requires distinguishing the incident recalled by the commentators from the categorical claim that it directly occasioned the verse’s revelation as it happened. The Battle of Badr took place in the second year after the Hijrah, whereas Surat At-Tawbah came late in the Medinan period. Its opening was proclaimed in the pilgrimage season of the ninth year after the Hijrah, following the conquest of Mecca and the return from the expedition to Tabūk. Rashīd Riḍā accordingly observed, as Sayyid Tantawi reports from him, that the story illustrates the sort of boast the Qur’an was answering, but does not in itself establish that this verse was revealed immediately after al-ʿAbbas spoke at Badr. When the early authorities report an occasion of revelation, it may mean that an event falls within the purview of the verse, rather than pinpointing the time of revelation as a matter of history. This distinction matters all the more because al-ʿAbbas, may Allah be pleased with him, subsequently embraced Islam. The threat of abiding forever in the Fire cannot be made into a final judgment on him simply because his name occurs in the story of the boast.
Imam al-Māturīdī drew attention to the issue.
“The end of the verse indicates, however, that it cannot concern al-ʿAbbas in the way they say. He says, ﴿أولئك حبطت أعمالهم﴾ ⟨[For] those, their deeds have become worthless⟩ (9:17), in this world, and ﴿وفي النار هم خالدون﴾ ⟨and in the Fire they will abide eternally.⟩ (9:17). Al-ʿAbbas afterward embraced Islam, and this threat cannot apply after his acceptance of Islam.”
Taʾwilat Ahl al-Sunnah — Muḥammad ibn Muḥammad al-Māturīdī
This observation does not rule out al-ʿAbbas taking part in the original incident or the condemnation applying to him in his state of polytheism. It does preclude applying the threat to someone who repented and believed while disregarding the change in his circumstances. The verse judges an existing religious condition and what follows from dying in that condition. It does not make the past a person has left behind for faith a permanent feature of his destiny. Earlier in this same surah, Allah made repentance a way into the brotherhood of faith. It would be inconsistent to overlook that when interpreting a verse whose reports include the name of a man who went on to become a believer.
The broader historical context sheds further light on the verse. Mecca was conquered in the eighth year after the Hijrah, and the Prophet, peace and blessings be upon him, purified the Kaʿbah of idols. Yet some polytheists continued to make the pilgrimage observing the rites they had inherited from the age of ignorance. The declaration of disavowal came in the ninth year, when it was proclaimed that no polytheist was to make the pilgrimage after that year and no one was to circumambulate the House naked. The transition from ending the rule of idols within the House to ending the polytheistic rites performed there reveals an important link with the beginning of the surah. The age in which Quraysh governed the Sanctuary while practicing polytheism had come to a close. The Qur’an declared that the House founded for monotheism must return to its purpose, and that service to the place must cease to lend legitimacy to worship that contradicted its founding mission.
Rashīd Riḍā explained the connection at length.
“Once the polytheists lost authority over the Sacred Mosque and the Messenger, peace and blessings be upon him, cleansed it of the idols it had contained, it remained to cleanse it of the false worship the polytheists had been practicing there and to explain to them why the Muslims had a better claim to it. When he gave them notice that their treaties were being repudiated and ordered ʿAli, may Allah honor his face, to recite the opening verses of Surat Baraʾah to their delegations on the day of the greater pilgrimage in the ninth year after the Hijrah, one purpose of that public proclamation was for them to learn that their polytheistic worship would be barred from the Sacred Mosque after that year, following the loss of their temporary authority over it.”
Tafsir al-Qurʾan al-Hakim (Tafsir al-Manar) — Muḥammad Rashīd Riḍā
The verse thus appears to open a new passage that extends to verse twenty-two. A series of comparisons between acts and states follows, bringing out the standing of belief, emigration, and striving in Allah’s sight, in contrast with pride in inherited services and social offices when the foundation of faith is absent. The next verse will identify those qualified to maintain Allah’s mosques. Verse nineteen will then ask a decisive question about giving water to pilgrims and maintaining the Sacred Mosque. Can these equal belief in Allah and the Last Day and striving in His cause? Thus the surah moves from denying the polytheists’ qualification to specifying the conditions of believers’ qualification, then to setting the standard by which deeds are compared. The honor of social standing cannot then be confused with the honor of worship, nor can an outward deed take the place of the foundation that gives it value in Allah’s balance.
Rhetorical Outpourings
The verse opens with Allah’s words ﴿مَا كَانَ لِلْمُشْرِكِينَ﴾ ⟨It is not for the polytheists⟩ (9:17). This Qur’anic construction is more emphatic than a direct prohibition where the issue is one of qualification. It does not say, “Do not maintain the mosques of Allah,” or “It is unlawful for the polytheists to maintain them.” The negation concerns what can rightly or fittingly fall within their province. In similar constructions, mā kāna denies that something is fitting, that there is a rightful claim to it, or that it can take place legitimately, according to the context. It is as though the deed thus denied runs counter to the very condition to which it is attached. Something can occur in fact despite such a negation, but not in a manner Allah approves or recognizes as sound under His law. Ibn ʿAṭiyyah therefore observed that polytheists did in fact maintain mosques at certain times, but doing so conferred no lawful right on them to administer them.
Ibn ʿAṭiyyah explains this point precisely.
“The words of the Exalted, ﴿ما كان للمشركين﴾ ⟨It is not for the polytheists⟩ (9:17), and the rest of the verse mean that the polytheists had no established right to maintain them. This is what Allah, mighty and exalted, denied. They have, in fact, maintained His mosques in former and later times, by force and wrongfully.”
Al-Muharrar al-Wajiz fi Tafsir al-Kitab al-ʿAziz — ʿAbd al-Haqq ibn Ghalib ibn ʿAṭiyyah al-Andalusi
The placement of the prepositional phrase ﴿لِلْمُشْرِكِينَ﴾ ⟨for the polytheists⟩ (9:17) immediately after the negated verb and before the infinitival clause ﴿أَنْ يَعْمُرُوا﴾ ⟨to maintain⟩ (9:17) brings the people whose claim is being denied into the foreground. Polytheism is thus named before the act to which its adherents claim entitlement. The Qur’an does not say “Quraysh had no right,” although Quraysh was prominently involved in the historical events. Instead it uses the description ﴿الْمُشْرِكِينَ﴾ ⟨the polytheists⟩ (9:17) to show that the basis of the ruling is polytheism, which runs contrary to the purpose of the mosque. Membership of a tribe or a family that inherited the custody of the Kaʿbah and the watering of pilgrims is beside the point. Al-Biqaʿi noted that a description of the people was fitting because some who had been polytheists later embraced Islam and acquired a qualification they did not have as polytheists. The precision lies in attaching the ruling to a condition that actually applies, since the circumstances of the people in question may change.
Next comes the verb ﴿يَعْمُرُوا﴾ ⟨maintain⟩ (9:17). It derives from the root ʿ-m-r, which conveys the opposite of ruin and emptiness. It can mean building up a place and putting it in good repair, living there, or frequenting it. One can say that someone “maintains” another’s gathering when he attends regularly and often. The commentators use maintenance in a broad sense, covering building, restoration, service, and cleaning, as well as visiting, staying, worshiping, and observing the rites. The word thus serves to discuss two different ways of caring for a mosque. One is material, involving its walls and facilities. The other is religious, involving the worship people perform there.
Al-Jaṣṣāṣ brings these two senses together clearly.
“Maintaining a mosque has two senses. One is visiting it and spending time in it. The other is building it and restoring what has fallen into disrepair. This is because iʿtamara is said of someone who makes a visit. The ʿumrah takes its name from this, for it is a visit to the House. A person is among those who maintain the mosques when he goes to them and spends time in them often. One person ‘maintains’ another’s gathering when he frequents it.”
Ahkam al-Qurʾan — Ahmad ibn ʿAli Abū Bakr al-Jaṣṣāṣ
Bringing the senses together shows that maintenance extends beyond the work that keeps walls from collapsing or the mere presence of a person in a place regardless of what he does there. At its root it means keeping a place from emptiness and ruin in a manner suited to its purpose. Since the mosque is set apart for the worship of Allah, the maintenance most proper to it is the worship for which it was established. Material upkeep serves that worship and makes it possible. Construction, cleaning, and fittings matter and worshipers need them. Their religious value is bound up with the purpose they serve.
This takes us to Allah’s words ﴿مَسَاجِدَ اللَّهِ﴾ ⟨the mosques of Allah⟩ (9:17). Nafiʿ, ʿAsim, Ibn ʿAmir, Hamzah, al-Kisaʾi, and others read the plural. Ibn Kathīr, Abu ʿAmr, and Yaʿqub read the singular, “مسجد الله,” meaning “the mosque of Allah,” in this first occurrence. In the commonly transmitted readings, the reciters agree on the plural in the next verse, ﴿إِنَّمَا يَعْمُرُ مَسَاجِدَ اللَّهِ﴾ (9:18). The singular refers to the Sacred Mosque, the subject of the dispute and of the guardianship in which the polytheists took pride. Allah’s words two verses later, ﴿وَعِمَارَةَ الْمَسْجِدِ الْحَرَامِ﴾ ⟨and the maintenance of al-Masjid al-Haram⟩ (9:19), support this reading. The commentators have understood the plural in two ways. It may refer to all Allah’s mosques, with the Sacred Mosque included above all others. It may instead refer to the Sacred Mosque alone, the plural expressing its greatness, its position as the qiblah and foremost of all mosques, or the fact that every spot in it can serve as a place of prostration.
Al-Farrāʾ says the following.
“He means the Sacred Mosque alone. Mujahid and ʿAtaʾ ibn Abi Rabah read it “مَسْجِد الله,” ‘the mosque of Allah.’ The Arabs sometimes use the singular for the plural or the plural for the singular. You may see a man on a packhorse and say, ‘You have taken to riding packhorses.’ You may see a man with many dirhams and say, ‘He has a great deal of the dirham.’ Thus the plural serves for the singular and the singular for the plural.”
Maʿani al-Qurʾan — Yahya ibn Ziyad al-Farrāʾ
Al-Zamakhsharī drew on the difference between singular and plural to bring out the scope of the ruling and the force of its negation. If the plural is taken to denote mosques as a class, the denial of qualification applies to every member of the class. It applies more plainly and more emphatically to the Sacred Mosque, the most honored of them all. If the plural is taken to refer to the Sacred Mosque in particular, the relationship between it and all other mosques is evident in its primacy and in its being their qiblah. The variation involves more than sound or grammatical number. It affects the verse’s immediate scope and bears on the distinction between the Sacred Mosque and other mosques in certain rules on entry and guardianship.
Al-Zamakhsharī writes as follows.
“The reading in the plural has two possible senses. One is that the Sacred Mosque is intended. The word ‘mosques’ is used because it is the qiblah of all mosques and their foremost, so that whoever maintains it is as one who maintains all mosques, and because every spot in it is a place of prostration. The second is that mosques are intended as a class. If they are unfit to maintain mosques as a class, it follows that they are unfit to maintain the Sacred Mosque, which stands first at the head of that class. This is more emphatic.”
Al-Kashshaf ʿan Haqaʾiq Ghawamid al-Tanzil wa-ʿUyun al-Aqawil fi Wujuh al-Taʾwil — Mahmud ibn ʿUmar al-Zamakhsharī
The attribution of the mosques to Allah honors them and establishes where their religious authority lies. They are Allah’s mosques because they are places set apart for worshiping and remembering Him. His dominion already encompasses everything. Their attribution to Him establishes their sanctity and purpose. Though believers are the ones who will be charged with maintaining them properly, the text does not say “the mosques of the believers.” The decisive consideration is the purpose Allah has assigned the place. People are entrusted with the administration and care of Allah’s houses. They do not own their sanctity or have the right to define it on the basis of their desires or claims to distinction.
The rhetorical picture culminates in ﴿شَاهِدِينَ عَلَىٰ أَنْفُسِهِمْ بِالْكُفْرِ﴾ ⟨[while] witnessing against themselves with disbelief.⟩ (9:17). In the majority reading, ﴿شَاهِدِينَ﴾ ⟨witnessing⟩ (9:17) is a circumstantial qualifier with the plural subject of ﴿يَعْمُرُوا﴾ ⟨maintain⟩ (9:17). The act by which they claim closeness to the House and the condition that contradicts its founding purpose thus appear together in one scene. The Qur’an presents their testimony of disbelief as accompanying what they call maintenance. It is no state of disbelief they left behind before undertaking this work. The outward service is at odds with the reality of their belief and their rites. Some commentators have understood the wording as ruling out a valid combination of maintaining Allah’s places of worship and worshiping another. Abū al-Suʿūd understood it in a more precise sense than a mere impossibility of reconciling two contrary things. What they do fails to qualify as religious maintenance in the first place as long as it goes together with what undermines its purpose.
Abū al-Suʿūd puts it this way.
“It is impossible that what they have called maintenance should be maintenance of Allah’s House while they engage in what contradicts and nullifies it, namely the worship of another besides Him, exalted is He. That is in no way part of maintaining it.”
Irshad al-ʿAql al-Salim ila Mazaya al-Kitab al-Karim — Muḥammad ibn Muḥammad al-ʿImadi Abū al-Suʿūd
Scholars have explained how they bore witness against themselves to disbelief in several ways. Some take it as testimony in words, such as acknowledging the worship of idols or denying the prophetic message. Some take it as testimony in conduct, apparent in their prostrating before idols and performing polytheistic rites at the House. Some take their pilgrimage invocation, “Here I am. You have no partner except a partner who is Yours. You own him and all he owns,” as open testimony to the polytheism they had introduced into monotheistic worship. Al-Suddi transmitted an interpretation under which each person testifies against himself by professing a religion at variance with Islam. Ibn ʿAṭiyyah expressed reservations about whether the wording of this account was established. Al-Rāzī concluded that it was sounder to understand their testimony as their acknowledgment of worshiping idols and denying the Prophet, peace and blessings be upon him. It did not require them to say of themselves in so many words, “I am a disbeliever.”
Fakhr al-Din al-Rāzī writes as follows.
“The first view, which is the sounder one, is that they acknowledged that they worshiped idols, denied the Qur’an, and rejected the prophethood of Muḥammad, may blessings and peace be upon him. All of that is disbelief. Whoever bears witness against himself to all these things has borne witness against himself to what is in fact disbelief. It is not meant that they testified of themselves that they were disbelievers.”
Mafatih al-Ghayb — Muḥammad ibn ʿUmar Fakhr al-Din al-Rāzī
This distinction prevents a confusion that can arise in reading the verse. The doctrinal judgment Islam makes about a belief or form of worship is not necessarily a description its adherents apply to themselves. A person may see himself as rightly guided in his religion while the Qur’an judges that his practice of polytheism is contrary to monotheism. The testimony therefore consists in what his words and deeds disclose in the balance of revelation. It need not be an explicit admission that he is mistaken in his beliefs. This matters for understanding how the verse makes a person’s deeds and condition bear witness to what is true of him.
The Qur’an then says ﴿أُولَٰئِكَ حَبِطَتْ أَعْمَالُهُمْ﴾ ⟨[For] those, their deeds have become worthless⟩ (9:17). The demonstrative calls to mind those just described, now that the contradiction between their claim to maintain the mosques and the polytheism that accompanies it is plain. The verb ḥabiṭat means that the deeds have come to nothing and lost their hoped-for fruit, Allah’s acceptance and reward. Ibn ʿAṭiyyah observed that this word is used of deeds and endeavors. He suggested a connection with the disease that livestock contract from harmful grazing, causing them to bloat and die. The word is thus apt for a deed that appears beneficial or great and yet fails to bear the fruit in the Hereafter that its doer expected to reap. The loss concerns the religious acceptance and reward of the work in the Hereafter for those who persist in polytheism. Material effects their service may have had in this world are a different matter.
Ibn ʿAṭiyyah says the following.
“Allah, exalted is He, then judged that their deeds ﴿حبطت﴾ ⟨have become worthless⟩ (9:17), that is, came to nothing. I know of this word being used only of endeavors and deeds. It appears to derive from ḥabaṭ, a deadly illness that afflicts grazing livestock if they feed on harmful pasture. It occurs in the words of the Messenger of Allah, peace and blessings be upon him, ‘Some of what spring brings forth kills by bloating or comes close to killing,’ and the rest of the hadith.”
Al-Muharrar al-Wajiz fi Tafsir al-Kitab al-ʿAziz — ʿAbd al-Haqq ibn Ghalib ibn ʿAṭiyyah al-Andalusi
The verse ends with ﴿وَفِي النَّارِ هُمْ خَالِدُونَ﴾ ⟨and in the Fire they will abide eternally.⟩ (9:17). A nominal clause follows the verbal clause about the deeds coming to nothing. The prepositional phrase ﴿فِي النَّارِ﴾ ⟨in the Fire⟩ (9:17) comes first, to draw attention to the fate Allah announces and to preserve the cadence at the end of the verse. Some rhetoricians have held that the fronting conveys restriction in this context. Others have held that its primary purpose is to state the outcome at once and underscore it, and that the construction need not imply absolute restriction in every sense. Abū al-Suʿūd distinguished the clause on deeds coming to nothing, which denies a claim to reward, from the clause on abiding forever, which denies deliverance from punishment. The verse thus brings together the failure, in the balance of the Hereafter, of the good deeds they had counted on and the fate that follows from dying in polytheism.
Abū al-Suʿūd explains.
“﴿أُولَئِكَ﴾ ⟨[For] those⟩ [At-Tawbah 9:17] are those who claim to maintain the mosque and do comparable good works despite their disbelief. ﴿حَبِطَتْ أعمالهم﴾ ⟨their deeds have become worthless⟩ (9:17) means the deeds they boast of came to nothing because of the disbelief that accompanied them. They became dust scattered abroad. ﴿وَفِى النار هُمْ خالدون﴾ ⟨and in the Fire they will abide eternally.⟩ (9:17) is on account of their disbelief and sins. The nominal sentence strongly emphasizes that they will abide forever. The adverbial phrase depends syntactically on the predicate and is placed before it to give it prominence and to preserve the cadence at the end of the verse.”
Irshad al-ʿAql al-Salim ila Mazaya al-Kitab al-Karim — Muḥammad ibn Muḥammad al-ʿImadi Abū al-Suʿūd
The composition thus moves from denying qualification to giving the reason, from there to judging the deed, and then to announcing the outcome in the Hereafter. The ending must be understood in light of the polytheism on which the verse turns. The threat cannot be applied categorically to a person who later repented and embraced Islam. As a number of commentators have explained, the abiding of which the text speaks is the recompense of those who die in disbelief. A person who has passed through polytheism and left it behind for faith does not remain permanently subject to that judgment.
Interpretive and Reflective Outpourings
The verse sets a precise standard for assessing deeds that appear beneficial. A deed is not necessarily accepted by Allah as an act of worship simply because it brings its doer social standing or benefits others. Evidence of a deed’s benefit in this world likewise does not establish the reward specified by religion in the Hereafter. Giving water and food to pilgrims and serving the House were socially beneficial acts. Yet the Qur’an did not make those services a substitute for believing in Allah alone. Maintaining mosques is an act of worship with a specific purpose. It entails more than running a useful facility or preserving a great building. We must therefore distinguish the value of a deed in terms of its effect on people in this life from its acceptance by Allah as an act of devotion undertaken in faith and sincerity and in obedience to His guidance.
Al-Ṭabarī stated the basis of the comparison as follows.
“His words ﴿أُولَئِكَ حَبِطَتْ أعمالُهُمْ﴾ ⟨[For] those, their deeds have become worthless⟩ (9:17) mean that their deeds came to nothing and their rewards were lost, because they were done for Satan instead of for Allah.”
Jamiʿ al-Bayan ʿan Taʾwil Ay al-Qurʾan — Muḥammad ibn Jarir al-Ṭabarī
This interpretation leaves room for worldly benefits arising from the polytheists’ deeds. Giving a thirsty person water or feeding someone in need does not become harmful in its human effects simply because the person doing so was not a believer. The text holds that while they remain in polytheism, these deeds cannot take the place of faith, the foundation for Allah’s acceptance of worship. Al-Shinqiti and others stated that a nonbeliever can receive recompense for some good deeds in this life. They cited verses and hadiths about recompense in this world, while distinguishing it from reward in the Hereafter, which is conditional on faith in the exegetical position they set out. We should keep the standard clear. The Qur’an leaves worldly facts in place and determines the conditions of salvation and acceptance in the Hereafter.
Al-Shinqiti says the following.
“Acts of devotion by a disbeliever benefit him in this world. A disbeliever may obey Allah in this world with sincere devotion for Allah’s sake, such as by treating his parents well, keeping ties of kinship, offering hospitality to a guest, relieving someone in distress, or helping [someone wronged]. If the disbeliever performs these acts of devotion for Allah’s sake, then Allah recompenses him in this world and gives him his reward in this world in the form of health, provision, and wealth. He receives nothing on the Day of Resurrection, as verses from Allah’s Book indicate.”
Al-ʿAdhb al-Namir min Majalis al-Shinqiti fi al-Tafsir, compiled by Khalid ibn ʿUthman al-Sabt — Muḥammad al-Amin al-Shinqiti
It follows that a deed’s coming to nothing in the Hereafter does not make every worldly good ineffectual in this life, and that people who differ from Islam are not all devoid of honor or kindness. A non-Muslim may be honest in business, keep an agreement, or help those in need, and the worldly effects of those acts and the rights they entail hold good. This verse concerns the religious acceptance of deeds the polytheists boasted of as against the monotheism they had refused. It should not be used to belittle every useful service by someone of a different faith. Nor can the benefit of an act in this world, taken by itself, establish its acceptance in the Hereafter regardless of the religious conditions.
One point for reflection is how the verse exposes the danger of making rites into a social inheritance through which people seek distinction before they seek to serve Allah. Quraysh saw guardianship of the House as a source of leadership among the Arabs. For some families overseeing the watering of pilgrims and the custody of the Kaʿbah, these roles carried weight in the distribution of power and prestige within Meccan society as well as serving a religious function. The Qur’an restores honor to its proper source. The House is great because it is Allah’s House. Serving it is an honor when it serves the worship of Allah, regardless of who possesses the key, supplies its water, or repeats its exploits and claims to distinction. This suggests that the integrity of religious institutions stems from how faithfully they fulfill their religious function. Renown, the pedigree of those responsible, and the extent of their wealth are insufficient.
Al-Zamakhsharī drew attention to the contradiction between maintaining the mosques and bearing witness to disbelief.
“﴿شاهدين﴾ ⟨witnessing⟩ (9:17) is a circumstantial qualifier modifying the plural subject in ﴿يَعْمُرُواْ﴾ ⟨maintain⟩ (9:17). The sense is that they could not rightly combine two incompatible things, maintaining Allah’s places of worship and disbelieving in Allah and in the worship of Him.”
Al-Kashshaf ʿan Haqaʾiq Ghawamid al-Tanzil wa-ʿUyun al-Aqawil fi Wujuh al-Taʾwil — Mahmud ibn ʿUmar al-Zamakhsharī
This contradiction lies at the heart of the verse. Those practicing polytheism could repair a wall or put up a roof. The problem was that they acted against the purpose for which mosques were built. A person may have the skills or money to serve an institution and yet be unqualified for religious authority within it if he does not acknowledge the founding mission. Lack of qualification to exercise religious authority, however, does not necessarily make every kind of technical service or professional work on behalf of a mosque under a lawful contract impermissible. Jurists and commentators differed on this question, as we shall see in the appropriate place.
Fakhr al-Din al-Rāzī considered outward deeds in relation to their basis in belief. He observed that the polytheists cited their commendable works to justify a claim to a degree of standing and support. The verse came to show that these merits did not remove the judgment of polytheism from those concerned. This does not mean that every commendable trait in a nonbeliever must be denied or that a believer must refrain from praising its sincerity or benefit when established. Praising a decent act does not imply endorsing the belief of the person who performs it. Differing from him in belief likewise does not make all his deeds worthless from the standpoint of worldly benefit.
Here we can see that the Qur’an distinguishes levels of judgment. Doctrine concerns faith and polytheism. Worship concerns the acceptance of acts of devotion. Social judgment concerns the effects of services and benefits. Jurisprudence concerns who may take charge of mosques, enter them, and maintain them. These judgments can bear on one another, but they are distinct. It is a mistake to carry a judgment from one level to another without evidence and equate a deed’s coming to nothing in the Hereafter with its having no worldly benefit, or equate disqualification from guardianship of a mosque with a prohibition of all technical dealings with non-Muslims in every circumstance.
This distinction is clear in Rashīd Riḍā’s commentary. He understood the prohibited maintenance of the mosque as having guardianship and independently managing its affairs. He believed that seeking help from a non-Muslim with technical work or services that did not entail religious authority fell outside the basic negation. He also discussed accepting donations or buildings offered by non-Muslims, distinguishing situations that entailed religious or political harm from those that did not. He regarded preserving the mosque’s independence as an objective to take into account in reaching a judgment. This is a substantial juristic interpretation. The schools did not necessarily agree with it, but it shows that jurists did not treat “maintenance” as a single, indivisible act.
Rashīd Riḍā writes as follows.
“It has been held that Muslims may not employ disbelievers to build mosques because this is part of the prohibited material maintenance. This is open to question. What is prohibited is guardianship of the mosques and the independent administration of their affairs, as when the overseer of a mosque and its endowments is a disbeliever. When Muslims employ a disbeliever for work involving no authority of that sort, such as cutting stone, construction, or carpentry, it does not appear to fall under the prohibition.”
Tafsir al-Qurʾan al-Hakim (Tafsir al-Manar) — Muḥammad Rashīd Riḍā
This distinction matters in contemporary interpretation. It prevents the qualifications for maintaining mosques from being reduced to the skill to perform technical work. It also prevents the religious negation from becoming a pretext for prohibiting all professional participation unrelated to overseeing the rites or directing worship. A detailed ruling still depends on the nature of the work, the place, the authority involved, the rights and safeguards, and the differences jurists set out under the law of mosques. There is no need to extend the negation indiscriminately to situations the text does not expressly address.
The verse also raises the relationship between deeds coming to nothing and faith. Most Sunni scholars held that polytheism prevents a person’s deeds from being accepted in the Hereafter if he dies in that state. A major sin committed by a Muslim does not necessarily invalidate all his righteous works, as some groups maintained in their teachings about nullification and threatened punishment. Abū Ḥayyān reported al-Zamakhsharī’s discussion of the nullification of deeds through major sin according to his Muʿtazili position and objected that this was a view derived from Muʿtazili principles. The verse therefore cannot serve as evidence that every Muslim who commits a major sin loses all his good deeds and falls under the threat of abiding forever that is stated for the polytheists. That would move from the polytheism the verse addresses to different judgments subject to theological disagreement and qualification.
Abū Ḥayyān says the following in his comment on al-Zamakhsharī’s wording.
“Al-Zamakhsharī said, ‘If disbelief or a major sin can destroy sound and valid deeds when it comes after them, what then if it is concurrent with them? The Exalted points to this by making ﴿شاهدين﴾ ⟨witnessing⟩ (9:17) a circumstantial qualifier. He shows that they maintain the mosques and bear witness against themselves to disbelief in one and the same state. This is impossible and cannot be right.’ End of quotation. His addition ‘or a major sin’ is a Muʿtazili doctrine slipped into the explanation. In their view, major sins nullify deeds.”
Al-Bahr al-Muhit fi al-Tafsir — Muḥammad ibn Yusuf Abū Ḥayyān al-Andalusi
This disagreement shows why understanding deeds coming to nothing requires distinguishing what the text says of polytheists from what theological schools inferred concerning a person who commits a major sin. The verse specifies the condition of people who practiced polytheism and bore witness against themselves to disbelief. Readers should not take for granted that the judgment extends to others in the absence of independent evidence. Nor should the verse’s declaration about abiding in the Fire turn into a judgment on individuals merely because a historical description applies to them before they embraced Islam. Repentance and entry into the faith change the judgment in the manner the texts explain.
Spiritual Outpourings
The verse invites believers to reflect on the relationship between the outward form of worship and its inward reality. A person may stand before a splendid mosque, spacious, beautifully decorated, and equipped with the facilities and services worshipers need, and ask whether maintaining it has fulfilled the purpose for which it was built. Material upkeep is a blessing when it keeps the House in good repair and supports prayer, remembrance, and learning. Yet it cannot take the place of the spiritual maintenance that rests on affirming Allah’s oneness and on the reverence of those who enter His house. A building may be modest, but sincere hearts can fill it with worship and make it a place of tranquility and obedience. A magnificent building can also lose its bearings when it becomes a setting for boasting, quarrels, or the pursuit of personal power.
Al-Qushayrī writes as follows.
“Mosques are maintained by establishing worship in them. Worship is accepted only with sincerity, and the polytheist lacks sincerity.”
Lataʾif al-Isharat — ʿAbd al-Karim ibn Hawazin al-Qushayrī
This insight gives weight to the sincerity that binds the deed to Allah rather than to the outward form that people alone can see. A Muslim who cannot build a mosque or contribute to its construction can still be among those who keep it alive with prayer, remembrance, and good conduct. A person with the means to put up a great building may still need to examine his intention lest his worship turn into seeking praise or showing off. To benefit spiritually from the verse, the Muslim must take account of himself. Applying its ruling to the polytheists about whom it was revealed is only part of reading it.
Allah’s words ﴿شَاهِدِينَ عَلَىٰ أَنْفُسِهِمْ بِالْكُفْرِ﴾ ⟨[while] witnessing against themselves with disbelief.⟩ (9:17) touch on a person’s honesty with himself. His words and deeds may disclose his actual beliefs more plainly than the names he gives himself. In the verse, the polytheistic rites they carried out at the House gave open testimony to what contradicted monotheism. A believer can take from this the need to bring conduct into accord with the belief he professes. Servitude to Allah falls short when a person remembers Allah often with his tongue and yet lives by wronging others or taking what is rightfully theirs. The same applies when he boasts of serving the mosque while neglecting to pray there, mistreating those who attend it, or using his financial contribution to hold himself above them.
A believer who commits a sin does not thereby become a polytheist or come under the verse’s ruling on deeds coming to nothing and abiding forever. The point is that Allah’s servant should guard against discrepancies between word and deed and remedy them by repentance and reform. A person may have righteous deeds while falling short in other respects. The mere presence of a flaw in his conduct does not justify declaring all his righteous works void. He should, however, fear ostentation and corruption that may reduce or do away with a deed’s reward, in accordance with the evidence governing such matters. The verse thus prompts sincere watchfulness and improvement of one’s intention without driving one to despair or to abandon worship for fear that the self may have a share in it.
Sayyid Quṭb discusses this meaning in the context of honoring the purpose of Allah’s houses.
“The very idea is objectionable from the outset. It has no justification because it runs contrary to the nature of things. Allah’s houses are devoted to Allah alone. Only His name is remembered in them, and none other is called upon alongside Him. How, then, can they be maintained by people whose hearts are empty of monotheism, who call upon partners alongside Allah, and who bear witness against themselves to disbelief, the testimony of a reality they cannot deny and have no choice but to acknowledge?”
Fi Zilal al-Qurʾan — Sayyid Quṭb Ibrahim Husayn al-Shadhili
The picture shows how the purpose of the mosque and the heart of the person who maintains it ought to be at one. The mosque is a place for the worship of Allah alone, and its overseers should uphold that worship and avoid whatever contradicts it. This is a metaphor for reflection, bringing closer the harmony between belief and worship. The heart is no physical place to be measured against a building, and the language of maintenance is no scientific diagnosis of its conditions. Just as walls keep a place from falling into ruin, monotheism keeps worship from being directed to any other than Allah. Just as maintenance puts a building back in good repair, repentance and sincerity mend the corruption that can enter Allah’s servant’s intentions and deeds.
At the words ﴿أُولَٰئِكَ حَبِطَتْ أَعْمَالُهُمْ﴾ ⟨[For] those, their deeds have become worthless⟩ (9:17), the believer feels a deep fear that a deed may lose the fruit he hopes to receive from Allah. A person may labor to build, spend money, or serve, and yet have the deed go unaccepted if it lacks the conditions for acceptance. Sound reflection does not make this fear an excuse for despair. The text that discloses the effect of polytheism opens the door of repentance, in the same surah, to those who turn back from disbelief. The believer is commanded to do good deeds in hope and fear, even when he is afraid they may fall short of perfection. His heart should hold together reverence for the conditions of faith and sincerity, eagerness to put right what he can of his flawed intentions and conduct, and a good expectation of Allah’s mercy, whose doors do not close on the repentant.
Al-Saʿdī writes as follows.
“If they are ﴿شَاهِدِينَ عَلَى أَنْفُسِهِمْ بِالْكُفْرِ﴾ ⟨[while] witnessing against themselves with disbelief.⟩ (9:17) and to their lack of faith, which is the condition for acceptance of deeds, how can they claim to be those who maintain Allah’s mosques when they lack the foundation and their deeds are void?”
Taysir al-Karim al-Rahman fi Tafsir Kalam al-Mannan — ʿAbd al-Rahman ibn Nasir al-Saʿdī
Acts of worship thus depend on a foundation that makes them acts of devotion to Allah. A Muslim should give as much care to putting his belief and heart in order as to increasing his good deeds. Outward worship deserves attention and needs faith and sincerity. One of the greatest spiritual insights may be to realize that maintaining Allah’s house begins with honoring the purpose for which it was founded, and that visiting a mosque calls for conduct befitting a place of worship. A person should refrain from harming worshipers, crowding them out without right, or using his service as a reason to look down on those without the means to offer the same.
Psychological Outpourings
The verse addresses a form of self-deception brought on by the social distinction of visible deeds, especially when they involve an institution that people deeply revere. Caring for the Kaʿbah and giving water to pilgrims ranked among the most honored offices for which the families of Quraysh competed. The services gave those who performed them a feeling of rank and precedence, and some considered them evidence of their merit against the believers who had preceded them in embracing Islam, emigrating, and striving. The Qur’an shows that however prominent a person’s social standing, it cannot qualify him for religious acceptance if he lives by what contradicts the basis of the worship he boasts of serving.
People naturally become attached to what they do with their own hands, since the achievement is tangible. Someone builds a mosque, spends money, organizes a service, or holds a public office and sees in it a clear sign of success and ability. But deeds that others can see are not always a perfect mirror of a person’s belief and intent. The wish to do good may be mixed with a desire for reputation and standing. A person can perform a useful service without recognizing the contradiction between some of his beliefs and the religious purpose of the institution he serves. We cannot conclude that everyone who undertakes visible work has a corrupt intention, and knowing a little about psychological motives gives a believer no grounds to judge what others keep inward. The point is to reconsider the standard by which we judge ourselves, and to recognize that an achievement other people see cannot establish the soundness of our inner lives on its own.
Abū Zahrah explains the place of boasting in the passage.
“This has been said to be the occasion for the revelation of the verse. In truth, there were some good deeds in the age of ignorance, but polytheism made them all come to nothing. A person who acts in pursuit of the pleasure of Allah, the One, without boasting or taking pride in partisan loyalties, acts for Allah and never associates anyone with Allah in worship. And whoever acts boastfully, taking pride in his partisan loyalties and not [taking pride] in Allah, sees his deeds turn to dust.”
Zahrat al-Tafasir — Muḥammad Abū Zahrah
This account shows how attachment to tribal boasting turned deeds into a means of ranking people. A service may be useful in itself and still become part of a contest for status and prestige. The person offering it then asks which houses are greatest and which families most honored instead of asking whether the right that Allah established the deed to serve has been upheld. For purposes of reflection, this is no problem confined to Quraysh in history. Contemporary societies can see versions of it when charitable and religious activity becomes part of a contest for status and institutions set up to serve people become tokens of their founders’ social superiority.
At the same time, this psychological insight gives no grounds for belittling charitable work or accusing people of ostentation because their names appear on facilities or useful projects. Public acknowledgment can serve a legitimate purpose, such as keeping a record, encouraging others to give, or ensuring transparency. Some forms of it can be ostentatious, depending on intent and the circumstances. Allah knows people’s intentions. Human beings must distinguish established wrongdoing or harmful boasting from a mere possibility in someone’s heart, beyond their knowledge. A person should therefore examine himself before calling others to account for their hidden motives and measure his work by the sincerity of the service he gives rather than the appearance it conveys.
Al-Shaʿrawi addresses the danger of being carried away by the scale of the work.
“You find one of them who keeps working and working, thinking he will reap much good from what he is doing. His work may benefit other people. But the intention was missing, and as a result the work came to nothing.”
Tafsir al-Shaʿrawi — Muḥammad Mutawalli al-Shaʿrawi
These words should be read in the context of what the verse says about polytheism and deeds coming to nothing in Allah’s sight. They do not lay down a general principle of psychology that would negate the worldly benefit that can come from a nonbeliever’s deed or a deed marred by a deficiency of intent. A deed may be of use to its beneficiaries in this world even if its doer has no claim to the reward of worship in the Hereafter, according to the doctrinal ruling the text sets out. A Muslim’s deed may be valid in itself and then lose some of its reward through ostentation. The two cases cannot be treated alike without qualification. Cultivating sincerity calls for a knowledge of the differences among these conditions, so that speaking of deeds coming to nothing does not breed indiscriminate fear and discourage people from doing good or lead them to dismiss the good it brings.
A person may also use visible achievements to compensate for a sense of falling short elsewhere in life. Someone may go to great lengths to show what he has given, built, or organized because these deeds make him feel worthy. They may help him fend off a harder question about what he believes or the values he actually lives by. This analysis cannot be extended to everyone who does charitable work, but it may help explain some of the boasting the Qur’an confronted. The measure goes beyond a person’s satisfaction with himself. It is whether the deed accords with the truth that should govern it. Examining the foundation therefore comes before taking comfort in the abundance of outward achievements.
The verse thus asks believers to balance the need for visible achievement with the need for the sincerity that makes achievement count. There can be a rightful pleasure in the success of work done in public, and a person may thank someone who has done good for others and acknowledge the service. None of this should obscure the questions of purpose, intention, and commitment. In this the verse connects with the preceding discussion of trials that reveal who is sincere. The test may come in battle when sacrifice is called for, or in service of the mosque when one has to give up a desire for admiration and status. Each situation has its own rulings and causes.
Pedagogical Outpourings
The verse lays an important basis for teaching people what it means to maintain mosques as Allah intended. It is not enough for a child to learn that a mosque has a prayer niche, a minaret, and carpets, or simply that it is where people pray. The child should understand that a mosque is a house set apart for the worship of Allah. Its greatest value lies in the affirmation of His oneness, the prayer, remembrance, and learning that take place there, and the good manners of those who enter. Young people should therefore learn that cleaning a mosque, restoring it, and serving worshipers are honorable in their proper place. These activities help fulfill the purpose for which the mosque was built. Attention to the building should never distract from the worship Allah would have established in it.
Ibn Kathīr writes as follows.
“The Exalted says that it is unfitting for those who associate partners with Allah to maintain Allah’s mosques, built in His name alone, with no partner. Those who read “مسجد الله,” ‘the mosque of Allah,’ mean the Sacred Mosque, the most honored mosque on earth, built from the first day for the worship of Allah alone, with no partner. The intimate friend of the Most Merciful laid its foundations. This while they bear witness against themselves to disbelief by their conduct and words.”
Tafsir al-Qurʾan al-ʿAzim — Ismaʿil ibn ʿUmar Ibn Kathīr
Building a mosque should thus remain tied to the worship of Allah alone upon which it is founded. People can compete to erect buildings for many reasons. A mosque may need expansion, maintenance, or facilities that make worship easier and keep worshipers safe. These are worthwhile when the need calls for them, but their priorities should serve the people who frequent the mosque. Spending more than needed on decoration should neither lead to neglect of other rights nor turn worship into a spectacle. Those responsible for mosques therefore need an understanding that brings together respect for the place’s sanctity, good management, kindness to those who use it, and fairness in the use of its resources.
Training those responsible for Allah’s houses brings up the question of guardianship that jurists addressed. Many held that the people administering mosques’ religious affairs, rites, and endowments should meet the requirements of religious law. Foremost is faith, which the text makes indispensable to valid maintenance. They differed, however, on some details of non-Muslims entering mosques, acceptance of contributions to building and restoration, and work involving maintenance and service without independent authority. Some allowed non-Muslims to enter a mosque other than the Sacred Mosque with permission and for a need. They cited accounts of delegations entering the Prophet’s Mosque, peace and blessings be upon him, and the sound report of Thumamah ibn Uthal, who was tied to a pillar in the Prophet’s Mosque before embracing Islam. Others adopted a more extensive prohibition or set conditions on permission. The Sacred Mosque has its own ruling, to be discussed under verse twenty-eight.
Al-Rāzī reports some of these views as follows.
“Al-Wahidi said that the verse shows disbelievers are barred from maintaining any mosque of the Muslims. If one bequeathed a gift for this purpose, his bequest would not be accepted. They are to be barred from entering mosques. A person who enters without a Muslim’s permission is liable to a discretionary penalty. If he enters with permission, he is not penalized. It is better to honor the mosques and keep them out. Yet the Messenger of Allah, peace and blessings be upon him, lodged the Thaqif delegation in the mosque when they were still disbelievers.”
Mafatih al-Ghayb — Muḥammad ibn ʿUmar Fakhr al-Din al-Rāzī
This quotation shows that there was more than one position on the details and that jurists read the verse alongside reports of incidents in the Prophet’s time. As for the report that the Thaqif delegation was lodged in the mosque, Abu Dawud included it and al-Albani judged its chain of transmission weak in this instance. Al-Rāzī’s quotation does not give it the standing of a sound report, and the judgment should not be extended to every chain of transmission without examination. Students should learn that the ruling about the Sacred Mosque does not automatically apply to all other mosques. Authority over the rites is distinct from entry for a lawful purpose or professional work on a building and its maintenance. The jurists’ rulings in these areas require detail and cannot be stated as blanket prohibitions. Nor may the rules of religious guardianship be used to diminish the human rights of non-Muslims or preclude kindness and equity in the relationships Allah has made lawful.
The verse also teaches that public service should never become a way to monopolize status or humiliate those who benefit from it. A person may build a mosque or pay for its facilities and then think he has the right to control worshipers, favor some over others according to how close they are to him, or require them to honor his name because the building owes much to him. But the mosque belongs to Allah, and a person’s money or effort should earn thanks for the good he has done without giving him absolute power over a place of worship. Donations and endowments can be subject to valid conditions that must be respected. Those conditions cannot threaten the function of the mosque or place its sanctity under the authority of the donor.
Ibn ʿĀshūr points to the basis of this meaning.
“Maintaining mosques means worshiping in them, since they were established for worship. They are maintained by the worshipers who frequent them. The term ʿumrah comes from this sense. The meaning is that the polytheists have no rightful claim to worship Allah in Allah’s mosques.”
Al-Tahrir wa-al-Tanwir — Muḥammad al-Tahir ibn ʿĀshūr
On this reading, the presence of people at worship is the heart of maintaining the mosque. The service, organization, and building that make it possible should serve that end. The next generations should learn that a mosque is a house where believers come together to worship Allah. It should not be a place to boast of social standing or to compete for precedence. A person’s merit there is measured by God-consciousness and righteous action, beyond wealth, lineage, or position. A donor may deserve gratitude and recognition for what he has given, but that does not entitle him to use the gift to disregard others’ rights or make the mosque a monument to his own glory.
The verse also teaches how the validity of a deed relates to the goodness of intention. A student may learn that serving others is commendable and still need to understand that worship depends on certain conditions. Intention and faith belong to its religious structure. They are more than embellishments to the action. Such teaching calls for care in distinguishing monotheism, the foundation for the acceptance of worship, from ostentation, which can invalidate some deeds or diminish their reward, from mistakes in need of correction, and from polytheism, which is subject to a different ruling. A person should be brought up to undertake righteous deeds while examining his intentions and repenting of what corrupts them. The possibility of imperfect sincerity should not make him afraid to do good.
Contemporary Outpourings
This verse speaks with particular force at a time when mosque construction and renovation projects are growing in scale, financing and management take many forms, and some religious buildings become architectural landmarks known around the world. Mosques can be built with the latest technology, equipped with extensive facilities for visitors and worshipers, and run by organizations specializing in maintenance, endowments, and services. These are blessings from Allah when used to support worship and make it easier for people. They must be guided by a standard that connects material upkeep with spiritual maintenance. Otherwise a mosque can become a showpiece, consuming people’s energies in decoration and rivalry while neglecting the prayer, remembrance, teaching, and tranquility for which it was founded.
The balance calls for taking proper care of a mosque’s beauty and upkeep and putting modern technology to good use. Sound construction, cleanliness, and good organization preserve the sanctity of the place and facilitate worship. Worshipers may need ventilation, cooling, lighting, safety features, accessibility for people with disabilities, and other services. Religious value depends on how well expenditure serves the mosque’s function, how honestly its overseers manage resources and endowments, and whether they provide services without using them to show off or infringe on people’s rights. The scale of spending alone cannot confer that value. Here the words ﴿مَسَاجِدَ اللَّهِ﴾ ⟨the mosques of Allah⟩ (9:17) take on renewed significance. However the means of construction develop, houses of worship remain dedicated to their highest purpose.
Muḥammad Husayn Fadlallah explains the purpose of a mosque.
“The mosque is Allah’s house, so it is set apart for worshiping Him alone. This is what Allah wanted His Prophet to convey in the proclamation of disavowal, when the polytheists were barred from making the pilgrimage after that year, in Imam ʿAli’s proclamation, may peace be upon him, ‘After this year, no polytheist shall make the pilgrimage.’ This is what we understand from these two verses.”
Min Wahy al-Qurʾan — Muḥammad Husayn Fadlallah
This passage brings us back to the purpose of the mosque, which comes before any social standing or economic effects it may bring. A mosque may attract visitors, boost surrounding markets, or improve the city’s image. These outcomes may have legitimate benefits, but they do not confer religious sanctity. The mosque was established for the worship of Allah. Its other functions should be weighed against this purpose, so that commercial, tourist, or political interests never govern the rites for which the place was founded.
In the administration of mosques and endowments, the verse raises a question of qualification that cannot be reduced to having money or technical expertise. A mosque may need engineers, accountants, maintenance workers, and specialists in technology, security, and safety. These functions can be organized according to the requirements that govern them, but they differ from exercising religious authority over the mosque and determining which rites are held there. Jurists discussed these distinctions within their schools. Some held that technical contributions entailing neither religious authority nor approval of polytheism may be permissible in certain cases. Others restricted non-Muslims’ participation in building and maintaining mosques more narrowly. Contemporary rulings should therefore take into account the nature of the work, the scope of authority, the terms of the contract, and the applicable rules. Giving “maintenance” a single sense cannot settle every case.
Rashīd Riḍā writes as follows.
“Muslims may accept a mosque of this kind and such a bequest, provided they involve no further religious or political harm. Otherwise it would be like the mosque of dissension that will be mentioned later in this surah.”
Tafsir al-Qurʾan al-Hakim (Tafsir al-Manar) — Muḥammad Rashīd Riḍā
This judgment shows the commentator’s concern for the consequences of accepting money or buildings beyond their immediate material benefit. A donation can be free of conditions that affect the mosque’s independence, or it may come with an attempt to influence its identity, management, or rites. Contemporary institutions need clear rules for accepting donations and bequests, transparency that preserves the rights of both donors and beneficiaries, and religious and administrative independence to keep worship from being exploited for purposes that are foreign to it. It would be wrong, however, to assume ill intent in every non-Muslim donor or organization that deals with a mosque. Judgments about motives and harm should rest on credible evidence rather than generalizations drawn from differences of identity.
The verse also bears on non-Muslims’ presence in mosques today, whether to learn about Islam, make educational visits, conduct official relations, or do professional work. There is a report that the Thaqif delegation was lodged in the Prophet’s Mosque, peace and blessings be upon him, before its members embraced Islam. The reservations about the chain of transmission have already been noted. There is also an authentic report that Thumamah ibn Uthal was tied to a pillar in the Prophet’s Mosque while he was still a non-Muslim. Some jurists cited such incidents in support of allowing non-Muslims into mosques other than the Sacred Mosque with permission and for a lawful need. Others cited the verses on mosque maintenance and reports about the Sacred Mosque to prohibit or restrict entry. They differed over the scope of the restriction and how to read the evidence together. We should preserve the distinction between the Sacred Mosque, whose special ruling follows in ﴿فَلَا يَقْرَبُوا الْمَسْجِدَ الْحَرَامَ بَعْدَ عَامِهِمْ هَٰذَا﴾ ⟨so let them not approach al-Masjid al-Haram after this, their [final] year.⟩ [At-Tawbah 9:28], and the other mosques, over which the jurists differed. The rulings for one should not be applied to the others without evidence.
In contemporary public life, the verse raises the distinction between doing good work and being qualified for the religious duties it supports. A person can perform useful work with great precision without thereby establishing his right to direct a religious institution whose beliefs differ from his own. Lack of qualification for a particular religious office likewise gives no ground for denying his skill or infringing his professional or civil rights. We should distinguish the doctrinal qualification to oversee worship, practical competence to provide services, and the rights established by contracts, agreements, and regulations. The verse should not be used to deny rights it does not address or impose rulings that do not follow from its subject.
Muḥammad ʿIzzat Darwazah was careful to read the verses together and in light of their purpose of distinguishing polytheistic worship from worship grounded in monotheism.
“The first two verses deny the polytheists the right and the qualification to maintain Allah’s mosques. They establish that the right and qualification belong to those who believe in Allah and the Last Day, establish prayer, give zakah, and fear none but Allah. This suggests that the comparison was originally concerned with denying the polytheists the right and qualification to maintain Allah’s mosques, including the Sacred Mosque. It was not a comparison among believers.”
Al-Tafsir al-Hadith — Muḥammad ʿIzzat Darwazah
On this reading, the matter in its original context concerns worship and qualification for religious authority. The comparison goes beyond the level of construction or economic services. The polytheists who took pride in maintaining the Sanctuary and giving water to pilgrims did not lack the ability to organize or provide a service. They lacked the foundation that makes maintaining mosques an acceptable act of worship. Muslim communities should therefore consider what worship, learning, good conduct, and lawful mutual aid take place in a religious facility, and whether its overseers act with integrity and fairness. Size and fame alone do not measure its success.
In the media and in outreach, mosque construction projects sometimes become publicity content whose value is measured by photographs and views. There can be a lawful purpose in making projects known and raising funds for them. Trouble begins when publicity becomes a goal that takes precedence over worship, or when project leaders give their achievements so much attention that they forget the mosque needs people to fill it with prayer, remembrance, and teaching. The answer is honesty and transparency in public communication, and care to keep the purpose of worship from dissolving in a culture of display and competition for status. Charitable work need not always be hidden, and religious projects may be announced.
Sayyid Quṭb writes as follows.
“The very idea is objectionable from the outset. It has no justification because it runs contrary to the nature of things. Allah’s houses are devoted to Allah alone. Only His name is remembered in them, and none other is called upon alongside Him.”
Fi Zilal al-Qurʾan — Sayyid Quṭb Ibrahim Husayn al-Shadhili
However designs and means of management change, these words keep their force. The mosque belongs to Allah. Belonging to Him means that it remains a place to affirm His oneness and worship Him. It should not become a means of asserting the superiority of a group, a person, or an organization. Communities will have different ways of financing, building, and organizing mosques. Changes in the means should leave the purpose intact. Scholars and those responsible for mosques have a duty to preserve their religious function and ensure that the services they provide help fulfill it.
Another question for contemporary reflection is the confusion that can arise between a deed’s effect in this world and its worth in the Hereafter. A non-Muslim may render a great humanitarian service in health care, education, or relief, with a clear effect on the lives of the people it reaches. Fairness and good conduct call on the believer to recognize that effect and to give thanks for it. This leaves in place the verse’s doctrinal judgment that faith is a condition for the acceptance of worship in the Hereafter. A human achievement in itself is different from the servitude Allah commands. Exegesis should be able to acknowledge worldly good in its place and state the judgment of the Hereafter in its place, without using either to cancel out the other or infringe on people’s rights.
Ibn ʿĀshūr explains how polytheism affects maintenance understood as worship.
“Attaching this negation to them by reason of their being polytheists indicates that polytheism deprives them of the right to maintain Allah’s mosques. The circumstantial qualifier ﴿شاهدين على أنفسهم بالكفر﴾ ⟨[while] witnessing against themselves with disbelief.⟩ (9:17) explains why they are excluded from maintaining Allah’s mosques. It modifies the subject in ﴿يعمروا﴾ ⟨maintain⟩ (9:17).”
Al-Tahrir wa-al-Tanwir — Muḥammad al-Tahir ibn ʿĀshūr
This explanation identifies the ground of the ruling. The question goes deeper than disagreement over upkeep of buildings. It is about how the foundation of worship relates to those who oversee it. This ground for the ruling should be understood within the body of law that distinguishes qualification for worship and guardianship from transactions, services, and rights. The description of polytheism here does not bring a Muslim who falls short in worship or commits a sin under the verse’s ruling of abiding forever and losing all his deeds. Shortcomings and sins are subject to their own rulings. The threat made concerning polytheism cannot be applied to them without evidence.
The seventeenth verse of Surat At-Tawbah thus reveals a question deeper than who should maintain the mosques. It concerns the balance by which people weigh deeds and standing and judge what appears great to others. Some of Quraysh thought that maintaining the House, holding its keys, and giving pilgrims water earned them an unrivaled religious and social standing. The Qur’an brought the deed back to its foundation, the place back to its purpose, and merit back to the faith and monotheism that please Allah. It recognized that they had rendered useful services in this world and denied that these could establish the validity of their worship or a right to religious authority over a house founded for sincere worship of Allah alone.
The distinction between two ways of maintaining mosques is now complete. One people see in walls and facilities, offices and visiting delegations. The other is founded in faith and attested by worship, with material means serving it in keeping with its purpose. The two forms can come together when believers care for Allah’s houses, preserve the buildings, and fill them with remembrance and prayer. They can come apart when the material service goes with a belief that contradicts the purpose for which the place was founded. The next verse completes the account. Having denied the polytheists’ qualification, it identifies those entitled to maintain Allah’s mosques. The passage thus moves beyond negation and sets out the positive meaning on which acceptable worship rests.
Perhaps what most awakens the heart in this verse is that a person’s condition and deeds bear witness against him before he has spoken a word. Someone may boast of a great service, yet what he really believes and what he seeks through his worship may tell us more about him than the deed he talks about. The believer should take this as a reason to examine his own life. It gives him no right to pry into people’s hearts or issue judgments for which he has no evidence. He should guard against taking satisfaction in the outward form of his work and forgetting its spirit, putting up more buildings and neglecting worship, or seeking people’s praise and forgetting Allah’s reward.
What a lesson the verse’s ending leaves in the soul. A person can fill his life with deeds and leave buildings, institutions, and memories behind that people speak of. Yet none of this can avail him in the balance of the Hereafter if he lacks the foundation on which Allah accepts worship. It is easy to say that someone built, spent, served, took charge, and organized things well. What counts is that his deeds rest on the faith Allah commands and that he fulfills the sincerity and uprightness Allah requires of him. Building, service, and the benefit people receive still have their place. Building is the means. Worship is the end. Service is an honor when it serves what pleases Allah. Ostentation and polytheism corrupt what the servant seeks in drawing near to Him.
The verse takes its place in the surah as a dividing line between an older authority grounded in polytheism yet attached to the Sacred House and a new era of maintenance which the Qur’an grounds in faith and monotheism. The idols were removed from the House. It was necessary also to discard the claim of qualification based on serving the place while corrupting its purpose. The honor of the Kaʿbah no longer depended on who held its key, and the merit of giving pilgrims water and food could never replace belief in Allah and His Messenger. The House thereby recovered the meaning it had held since Abraham and Ishmael raised its foundations. It is a house for Allah alone, sought by hearts before feet, its courts filled with worship before outward display. The believer finds in serving it an honor conferred by tending a house Allah has attributed to Himself, beyond any standing people might grant him.
The verse’s message endures. A person should not deceive himself with the number of his achievements if he lacks the foundation that gives deeds their worth in Allah’s sight. Inherited rank, wealth, and the capacity to build are no measure of what can only be attained through faith and servitude. When the root is sound, the branches can grow. When it fails, the finest adornments can do nothing for it. We see the tragedy of a deed that loses its fruit with Allah and of a person who thinks his efforts will suffice for salvation only to find that those efforts lacked their necessary foundation. The heart thus moves from admiration of the outward work to questioning its reality, from seeing stone to recognizing purpose, and from recollecting human achievements to honoring the Lord of the House. Worship is due to Him alone, and from Him alone comes its reward. Lineage, standing, and deeds cannot take the place of the faith He has approved for His servants.
﴿مَا كَانَ لِلْمُشْرِكِينَ أَنْ يَعْمُرُوا مَسَاجِدَ اللَّهِ شَاهِدِينَ عَلَىٰ أَنْفُسِهِمْ بِالْكُفْرِ أُولَٰئِكَ حَبِطَتْ أَعْمَالُهُمْ وَفِي النَّارِ هُمْ خَالِدُونَ﴾
It is not for the polytheists to maintain the mosques of Allah [while] witnessing against themselves with disbelief. [For] those, their deeds have become worthless, and in the Fire they will abide eternally.
At-Tawbah 9:17