Imam Hasan al-Askari (AS), the eleventh Imam of Shia Muslims and the father of Imam Mahdi (AS), was born in 232 AH/846-7 in Medina. During his childhood, he was forced to accompany his father to Samarra, in present-day Iraq, by the Abbasid caliph. He lived there under Abbasid surveillance until his martyrdom in 260 AH/873-4. He was buried alongside his father, Imam al-Hadi (AS), in Samarra, at a site known as the Shrine of the Two Askari Imams.

There are no specific reports about Imam Hasan al-Askari (AS) performing Hajj. However, narrations from him regarding the pilgrimage, its significance, and the meanings behind the phrases of "Labbayk" have been recorded. In addition to the commentary attributed to him, prayers and supplications by the Imam are also found in Islamic sources.