A Mushrik (one who associates others with Allah in His Divinity or worship) performed Hajj and a long time after his return from Hajj, Allah guided him to the sound ‘Aqidah (creed) and ‘Ibadah (worship). He repented to Allah and became a true monotheist. Will the Hajj he performed while he was a Mushrik discharge the obligation
or must he perform another Hajj after correcting his Tawhid (belief in the Oneness of Allah)?
If anyone performs Hajj while committing major Kufr (disbelief) and then embraces Islam, their Hajj will not count as the obligatory Hajj of Islam. (Part No. 11; Page No. 27) However, if a Muslim apostatizes by committing an act that takes them out of Islam, and then repents and returns to Islam, their Hajj will count as the obligatory Hajj of Islam. This is because they were Muslims when they performed Hajj. The Qur’an informs us that the deeds performed by a Murtad (apostate from Islam) before having apostatized are only rendered worthless if they die a Kafir (disbeliever), because Allah (Exalted be He) says:
And whosoever of you turns back from his religion and dies as a disbeliever, then his deeds will be lost in this life and in the Hereafter, and they will be the dwellers of the Fire. They will abide therein forever.
May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family and Companions.