The Messenger of Allah (peace be upon him) arrived in Madinah on Friday, 12th Rabi‘ Al-Awwal 1 A.H., i.e. September 27th. 622 A.D. and took the downstairs of Abu Ayyub’s house as a temporary residence.
The Muslims were overjoyed at the arrival of the Messenger of Allah (peace be upon him). It was the best thing that had ever happened to them. Young children were seen singing beautiful songs, welcoming the Prophet (peace be upon him) to their city.
From that day on, the town of Yathrib was known as Madinat an-Nabi, or the city of the Prophet.
The Prophet's journey from Makkah to Madinah -the Hijrah- was seen as a new beginning and a fresh opportunity to spread the message of Islam. This is why Muslims begin their calendar from the year of the Hijrah.
Soon after his arrival, the Messenger of Allah (peace be upon him) helped in the building of a Mosque, now known as al-Masjid an-Nabawi. The mosque was seen as a meeting place for the faithful and a centre for all of their activities. Once the Mosque was built, the Messenger of Allah (peace be upon him) chose Bilal ibn Rabah, known for his beautiful voice, to call the adhān.