The Prophet (S) bought this place and built there...
The Prophet (S) bought this place and built there, the mosque of Medina, with bricks and mud and covered its ceiling with branches of date trees. On the rear side of the mosque, he constructed a small shed named “Junhah” and made the homeless “Muhajirs” (the Immigrants) reside in this place. Similarly, he built houses alike the structure of the mosque for each of his spouses adjoining the mosque. Seven months after migration, he married Ayesha.
Thereafter, he got his daughter Fatimah, his daughter from Khadijah (s.a.), married to his cousin Ali, the son of Abu Talib, and constructed a house (which looked similar to his own house) near his own house for Fatimah (a.s.) The Foundation of the Islamic Society As such, the Prophet (S) founded the first Islamic society. He created brotherhood between every two persons from the Muhajirs (immigrants) like Abu Bakr and Omar.
Moreover, he set every Muhajir as a brother to every Ansar (Helpers) like in the case of Abu-Bakr with Kharejah ibn Zubair Ansari and Omar-ibn-Khattab with Etab-ibn-Malik Ansari.
On both these occasions, he called Ali (a.s.) as his brother and addressed him as such, “You are my brother in this world as well as the Hereafter “[^6] Similarly, for the sake of safeguarding this small society, he entered into a peaceful coexistence treaty with the Jewish tribes of Medina who were financially sound and wealthy.
Moreover, the Prophet (S) signed a pact of cooperation with them (in particular, the tribes of Bani-Qainaqa who were tradesmen and usurers and the two tribes of Bani-Nazir and Bani-Quraizah, whose professions were farming, gardening and cattle-rearing) to fight against anyone who wanted to attack Medina.
In this pact, they had implicitly acknowledged the Prophet’s (S) authority and rule in Medina.[^7] After concluding these agreements and gaining confidence in the internal security, the Prophet (S) turned his attention to the enemies of Islam (i.e. the Quraish in Mecca). This was while hundreds of Muhajirs existed who had left their entire wealth in Mecca under the occupation of the Quraish and were now living in utmost hardship, with the assistance of the Ansars.
To solve this problem, the Prophet (S) would dispatch warriors to overcome the trade caravans of the Quraish who would pass near Medina on their way to Mecca. On one occasion, they gained control over a small trade caravan belonging to the Quraish and the Prophet (S) distributed the spoils amongst the indigents.