When the Caliphate moved into the hands of the Umayyads in Damascus in the year 40 AH, the city of Medina was freed from the political burden, its residents focused on daily routines and scientific studies at the Nabawi Mosque. The movement of gathering Hadith and Islamic history rose and emerged competent jurisprudents. Medina became widespread, buildings spread, houses around the Aqiq valley grew crowded, dams built on valleys, built large agricultural areas, as well as the first water dam that regulated the circulation of water through underground channels from regional wells Quba ‘headed for the Prophet’s Mosque and the surrounding area, which irrigated the gardens. The people of Medina named it the “blue spring”. The Nabawi Mosque was renovated, carried out a large expansion with high decoration technology. Apart from that, it’d be a good idea if you’re going here to see an excellent Arabic learning center.
When the Caliphate moved to the Abbasids in 132 AH, the residents of Medina paid their respects, and life at that time lasted safely for a long time until the end of the second century Hijri. Except when two major events occurred, namely the killing of several people from the Umayyads by the Abbasids. Another event was the Muhammaz An-Nafsuz Zakiyyah rebellion against the Caliph Al-Manshur in 145 H. He was surrounded and killed with several defenders by Abbasid forces who invaded the city of Medina. And after that, Medina returned to its path in science and economics, and then Imam Malik emerged whose study was directed by the claimants of knowledge from various Islamic countries.
In the second decade of the 3rd century Hijri, the city of Medina became the destination of Muslims to make a pilgrimage to the Nabawi Mosque and meet with the great scholars of the Islamic world. They met each other in this mosque and exchanged qira’at and diploma readings. Some of them stayed for some time to absorb religious lessons.
The city of Medina is surrounded by a fence built in 263 H. The fence guarded its inhabitants for more than two centuries. The Abbasid and Fathimiyya rulers competed to attract the hearts of the people of Medina and preach before them on the pulpit of the Nabawi Mosque, also sending prize money.