These are some of the hadeeths mentioned by Imam An-Nawawi, may Allah shower blessings on him, under the Book of miscellaneous hadeeths.
It is mentioned on the authority of Abu Hurairah (may Allah be pleased with him) that the Prophet ﷺ said: "The dearest parts on the face of the earth to Allah are the mosques, and the most hated parts to Allah are its markets," or he said: "towns."
The mosques belong to Allah; hence, He ascribed them to Himself in His saying:
"Who are more unjust than those who forbid that Allah's Name be glorified and mentioned much (prayers and invocations, etc.) in Allah's mosques." (2: 114).
And Allah – the Mighty and Sublime – said:
“In houses (mosques) which Allah has ordered to be raised (to be cleaned and honoured) in them His Name is remembered [i.e. Adhaan, Iqāmah, Salat (prayers), invocations, recitation of the Qur'an etc]. Therein glorify Him (Allah) in the mornings and in the afternoons or evenings.” (24:36).
The mosques are the dearest places to Allah. This is because He is remembered, worshiped and His laws are studied among other praiseworthy religious and worldly acts in these places. Thus, expending one's wealth in the building and maintenance of mosques is the most praiseworthy of all expenditures. This is a continuous charity and far better than slaughtering animals or giving food as charity. Therefore, if he invests his wealth in the building and maintenance of mosques, that obviously is the most rewarding act because it definitely amounts to continuous charity. Every Muslim will derive benefit from its usage such as those observing Prayer, studying, learning, teaching and taking shelter in it from cold and heat among other uses.
On the other hand, the markets belong to the devils. This is where Satan lays and hatches his eggs, refuge is with Allah, mounts his banner and pitches his tent. This is because the most notable and pronounced feature of a market place is business transaction. This is filled with lying, swindling, cheating, betrayal of trusts, false oath, swearing and other blameworthy acts except the one whom Allah protects. Hence, it is the most hated place to Allah, the Mighty and the Exalted.
The attributes of Love and Hate are affirmed for Allah in this hadeeth; that is, Allah loves as well as hates. One of the fundamentals of Ahlus-Sunnah Wal Jama'ah is that we believe this. We say that Allah loves and hates, and He, Glory be to Him, is described with Perfect Attributes. He loves only what contains good and wellbeing and hates what contains evil.
It is also advisable as contained in the hadeeth of Salmaan (may Allah be pleased with him) for one not to be the first to enter a market or the last person to leave it. The reason is that it is the most hated place to Allah due to its inherent evils such as the free-mixing of opposite genders, casting prohibited glances, (indulging in) forbidden
speeches and other evils.
As for the hadeeth of Abdullah bin Surjis (may Allah be pleased with him), he asked the Prophet ﷺ to ask forgiveness for him and he ﷺ did. He said: "Ask for Allah's forgiveness for me, O Messenger of Allah" and the Prophet ﷺ answered him. This proves that the Messenger of Allah ﷺ is quite unlike others because you can request for his supplications. Someone can say to him; "O Messenger of Allah, ask for Allah's forgiveness for me." However, this was only allowed during his lifetime as it becomes impermissible after his demise. Whoever asks him for supplication after his death is a polytheist and a disbeliever. But there was no harm doing this during his lifetime. Allah has commanded his Prophet ﷺ to ask for forgiveness for his misdeeds and for the believing men and women. He – the Mighty and Sublime – said:
"And ask for forgiveness for your sin and also for (the sin of) believing men and women."
And Al-Maghfirah is that Allah will conceal the misdeeds of this slave and screen it from the prying eyes of the people, pardon him and overlook it. This is because the word, Al-Maghfirah, is derived from a root word which is synonymous with As-Sitr (concealment) and Al-Wiqayah (protection).