Arriving at Masjid an Nabawi & giving Salaam
After (the pilgrim) prays upon arrival in the Prophet’s Masjid, he should go and send salaams upon the Prophet (peace and blessings of Allah be upon him) and his two companions Abu Bakr and ‘Umar (may Allah be pleased with them).
When entering the Prophet’s masjid, one should be in a state of calm and spirituality. One of the many mistakes done at the grave of the Prophet (peace be upon him) is raising the voice and requesting from him that one’s needs be fulfilled.
Stand in front of the grave of the Prophet and say,
“As-salaamu ‘alayka ayyuha’l-Nabiyyu wa rahmat-Allaahi wa barakaatuhu (Peace be upon you, O Prophet, and the mercy and blessings of Allah).”
Then in front of the grave of Abu Bakr (may Allah be pleased with him) and say, “As-salaamu ‘alayka ya Aba Bakr, as-salaamu ‘alayka ya khaleefat Rasool-illaah fi ummatihi, radiya Allaahu ‘anka wa jazaaka ‘an ummati Muhammadin khayran.
Then in front of the grave of ‘Umar (may Allah be pleased with him) say, “As-salaamu ‘alayka ya ‘Umar, as-salaamu ‘alayka ya ameer al-mu’mineen, radiya Allaahu ‘anka wa jazaaka ‘an ummati Muhammadin khayran

Masjid Quba
Masjid Quba, located in the outskirts of Madinah, holds a special place in Islamic history and is highly revered for its virtues.
Virtues:
1. First Mosque in Islam:
It was the first Masjid built by Prophet Muhammad (saw) during his migration (Hijrah) from Makkah to Madinah.
2. Salah at Masjid Quba:
According to Ibn Umar (RA), the Prophet (saw) said: “Whoever makes ablution at home and then goes to Masjid Quba and offers two rak’ahs (units of prayer) therein, he will have the reward of an Umrah.” (Ibn Majah and Musnad Ahmad)
3. Walking to Masjid Quba:
“The Prophet used to go to Masjid Quba every Saturday, either walking or riding.” (Bukhari)
4. Blessings of Masjid Quba in the Qur’an:
Masjid Quba is mentioned in the Qur’an in Surah At-Tawbah (9:108), where Allah describes it as a Masjid founded on Taqwa (piety):
“Certainly, a Masjid founded on righteousness from the first day is more worthy for you to stand in…” (Qur’an 9:108)
In summary, Masjid Quba is a highly significant Masjid in Islam. Praying there brings immense rewards, comparable to performing Umrah, and walking/riding to the Masjid follows the noble practice of the Prophet Muhammad (saw), with the act itself being spiritually uplifting and rewarding.