Commentary
Mentioned in the previous verses was how crooked the Mushrikin of Makkah were, how they broke their pledges and what they did to defend their false ways in religion. With this in view, Muslims were also brought around to stand up against them. In the last previous verse (16), Muslims have been told that Jihad is a test for them. This test is necessary because it helps in marking out a sincere Muslim from hypocrites and the weak-in-faith. Says the verse: ` Do you think that you will be left alone while Allah has not seen those of you who struggle in jihad and never take anyone, other than Allah and His Messenger and the believers, as their confidant?'
The address in this verse is also to those common people who were taken to be Muslims, though some of them were hypocrites while some others were weak in faith and kept wavering. Such people would pass on sensitive information about Muslims to their non-Muslim friends. Therefore, two signs of a sincere Muslim were identified in this verse.
Two signs of sincere Muslims
(1) They fight disbelievers in the way of Allah.
(2) They take no non-Muslim as their close friend to whom secrets are confided.
At the end of the verse, it was said: وَاللَّـهُ خَبِيرٌ بِمَا تَعْمَلُونَ (And Allah is [ All ] Aware of what you do) that is, before Him nobody can get away with false excuses and alibis.
This wisdom of Jihad mentioned earlier has appeared in another verse of the Holy Qur'an in the following words: أَحَسِبَ النَّاسُ أَن يُتْرَكُوا أَن يَقُولُوا آمَنَّا وَهُمْ لَا يُفْتَنُونَ (Do people think that they will be left to say, "We believe," and they will not be tried? - 29:2)
On taking non-Muslims as close friends and insiders
The word: ولیجہ (walijah) used in verse 16 means an insider who shares secrets. There is another verse which uses the word: بطانہ (bitanah) to carry this very sense. Literally, بطانہ ` bitanah' means what is worn under normal clothing and is close to the body. It denotes a person who knows secrets as an insider. The actual words of the verse read: يَا أَيُّهَا الَّذِينَ آمَنُوا لَا تَتَّخِذُوا بِطَانَةً مِّن دُونِكُمْ لَا يَأْلُونَكُمْ خَبَالًا O those who believe, do not take anyone as insider but from your own selves for they would spare no effort to put you in trouble). (3:118)
Now we can turn to the present verses (17 and 18) where instructions have been given to cleanse al-masjid-al-Haram and other masajid (mosques) of false modes of worship and replacing them with what is correct and acceptable.
A little background detail is in order at this point. When the Holy Prophet ﷺ got rid of all those idols the Mushriks used to worship from the Baytullah and the Sacred Mosque soon after the conquest of Makkah, it was a matter of relief, at least externally, for the Sacred Mosque was now free from the physical vestiges of Shirk. But, the Holy Prophet ﷺ had granted his old enemies pardon and protection soon after they were overpowered. They still used to do their ` Ibadah and Tawaf in the Sacred Mosque following their false ways.
That the Sacred Mosque was cleansed of idols was good, but it was also necessary to purify this sacred site from the fallout of idolatry …