Mishkat al-Masabih
Abu Umama reported God’s messenger as saying, “He who is not prevented from performing the pilgrimage by an obvious necessity, a tyrannical ruler, or a disease which confines him at home and dies without having performed the pilgrimage, may die if he wishes as a Jew, or if he wishes as a Christian.” Darimi transmitted it.
وَعَنْ أَبِي أُمَامَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنْ لَمْ يَمْنَعْهُ مِنَ الْحَجِّ حَاجَةٌ ظَاهِرَةٌ أَوْ سُلْطَانٌ جَائِرٌ أَوْ مَرَضٌ حَابِسٌ فَمَاتَ وَلَمْ يَحُجَّ فَلْيَمُتْ إِنْ شَاءَ يَهُودِيًّا وَإِنْ شَاءَ نَصْرَانِيًّا» . رَوَاهُ الدَّارمِيّ
Reference