The Mosque of Solomon was built by Apriloglu Abul Qasim between 1155 and 1160. The mosque, which is named under three names: Nasiriyye Mosque, Hazrat Suleiman Mosque and Kale Mosque, is a visit to the local people and the mosques because of the tomb of Solomon and the presence of 27 sahabens. Adjacent to the mosque, including Suleiman, son of Khalid bin Walid, who was martyred during the conquest of Diyarbakir, 27 sahabes were martyred in this region and 13 sahabes were martyred in a different part of the walls and there were mashhads here.
The most important feature of the mosque located at Saray Kapı is that the conquest of Diyarbakir began here during the reign of Hz. Omar and the tombs of the fallen sahabes took place here. The inscription written in 1631-1633 on the south window to the shrine states that Khalid bin Walid’s son and 24 pitches were metfun under the dome.