The Prophet, peace be upon him, said:

Whoever is not prevented from performing Hajj by a clear need, a tyrannical ruler, or a debilitating illness, and dies without performing Hajj, may die as he wishes, either as a Jew or a Christian.

Narrated by Al-Bayhaqi.