The shrine around their tombs was built in 944 by the Hamdanid governor Nasīr ad-Dawla. It became a focus for pilgrims. It was developed and rebuilt several times in following centuries, including, in particular, by Arslan al-Basasiri around 1053 and by Caliph an-Nasīr li-Dīn Allāh in 1209.