It was built in AD876 during the Abbasid dynasty. Muhammad later moved to the city of Medina and built a mosque (Islamic place of worship). He later returned to Mecca and many more people became ...