In the eleventh year of Nabuwat (Prophethood) six men came from Madinah
for Hajj and met Rasulullah .
They embraced Islaam and the following year twelve pilgrims came to Makkah
and embraced Islaam and pledged: 'We will not worship anyone but Allah,
we will not steal, not commit adultery, nor kill our children. We will
in all that is good'. This was known as the first covenant of Aqabah.
The following year, in the thirteenth year of Nabuwat seventy two Muslims came for Hajj from Madinah. When they heard that Rasulullah was thinking of leaving Makkah, they invited him to Madinah and promised full help for him, his mission and his followers.
With the promise of safety in Madinah, the believers migrated there alone or in groups with the permission of Rasulullah . When all had left with the exception of Hazrat Abu Bakr (R.A.), Hazrat Ali (R.A.) and some women and children, Rasulullah awaited the Command of Allah to leave for Madinah.
Contents of the biography of the Prophet Muhammed