Abu Hurairah reported that the Prophet ﷺ said, “The dearest parts on the face of the earth to Allah are its Masajid, and the most hated parts to Allah are its markets.”
(Sahih Muslim)
The Masjids are the most beloved place to Allah as they are the places of gatherings for the believers to worship Allah the Exalted and there are a lot of good deeds being done in the Masjids.
As for the markets and why they are the most hated parts to Allah is because they are places where people usually conduct dishonest transactions, break promises and they are usually devoid of the remembrance of Allah the Exalted. Such deviances revoke His mercy. Hence, it is not the places per se but the immoralities that were attributed to these places.
Abu Hurairah reported that the Prophet ﷺ said: “There are seven whom Allah will shade on a day when there is no shade but His.”(Bukhari, Muslim)One of the categories of people mentioned in this hadith is ‘a man whose heart is attached to mosques’. This person will always yearn to go to mosques to perform daily prayers in congregation. He will make time to worship Allah the Exalted, to be connected with Him. The person may also be involved in volunteering and helping out in mosques to the best of his ability, just to winthe Pleasure and Mercy of Allah.
Abu Sa’eed narrated that the Messenger of Allah ﷺsaid:“If you see a man committed to the mosque then bear witness to his faith….”