I seek refuge in the Lord of the Day Break from the evil of what He created. In the name of Allah, The One Who blesses all, and The One Who is selected in His blessings. The Peace and Blessings of Allah bestow on the Noble Prophet Muhammad, his companions, his household, and those who follow his path until the Day of Reckoning. Then after:
Among those who will be under Allāh's Shade on the Day when there is no shade but His, is the one whose heart is attached to the Masjid (Mosque). The Masjid is a place of worship where Muslim men have been commanded to pray therein, unlike the women. For the women, it's more excellent to pray in their homes. Though this does not suggest that they can't pray in the Masjid if they seek permission and there is no fear of temptation (from them to the men) or fear of their safety.
As recorded in Sahih Bukhāri 900 and Sahi Muslim 442, Ibn Umar reported: The Messenger of Allāh (PBUH) said, “Do not prevent women from their share of the mosques, if they seek your permission.”
Praying in the Masjid would indeed make a person attached to it and there are a lot of benefits in this other than meriting Allāh's Shade on the Day of Judgment. As recorded in Sahih Bukhāri 620 and Sahih Muslim 649, Abu Hurayrah reported: The Messenger of Allāh (PBUH) said, “The prayer of a man in congregation is twenty-five times better than prayer in his home or shop. When he performs ablution in a good manner and leaves to the mosque only to perform the prayer, then his every step will raise him a degree and expiate a sin until he enters the mosque. When he is performing prayer, the angels send blessings upon him for as long as he remains in his place of prayer. They say: O Allāh, bless him and have mercy upon him. One of you continues to be in prayer as long as he is waiting for the prayer.”
Also recorded in Sahih Bukhāri 631 and Sahih Muslim 669, Abu Hurayrah reported: The Prophet (PBUH) said, “Whoever goes to the mosque in the morning and evening, Allāh will prepare for him a place in Paradise for every morning and evening.” The Masjid should be in the heart of every Muslim because in it we gather five times a day. Standing together in rows without any discrimination encourages mutual love and brotherhood.
As recorded in Shu’ab al-Iman 2689, Salman al-Farisi reported: The Messenger of Allāh (PBUH) said, "The Masjid is the home of every righteous believer. Allāh has guaranteed comfort and gratification to those who take the Masjid as their homes, and safe passage over the bridge of Hell unto the Pleasure of Allāh.”
Undoubtedly, the one who's attached to the Masjid is the one who often observes his five daily obligatory prayers in it. You can't claim to love the Masjid or your heart is attached to it if you don’t constantly pray in it. The love of the Masjid will indeed make you constantly spend quality time in it, thus meeting your brethren in Deen, establishing a sense of brotherhood, becoming known to each other, and attending religious circles together. The brothers you meet in the Masjid are different from others you meet somewhere else.
They are those who pick you up when you fall and ask about you if not seen in the Masjid. They love you and you love them for Allāh’s Sake, which is another act to merit Allāh’s Shade. Therefore, it can be said that being attached to the Masjid leads to loving someone for Allāh's Sake. Maa Sha Allah!
Dear brethren, don't let the distance of the Masjid distance put you from going to it. Remember, for every step you take, you are rewarded. Therefore, the further the Masjid is, the more rewarded you are. I beseech Allāh to make our hearts ever attached to the Masjid. (Aameen)