The Messenger of Allah ﷺ said, "Whoever possesses the provisions and a mount that can carry him to the House of Allah and yet does not perform the pilgrimage, it makes no difference whether he dies a Jew or a Christian. That is because Allah says in His Book, 'And pilgrimage to the House is a duty owed to Allah by people who are able to find a way there'" [Aal Imran 3:97].
حدثنا محمد بن يحيى القطعي البصري حدثنا مسلم بن إبراهيم حدثنا هلال بن عبد الله مولى ربيعة بن عمرو بن مسلم الباهلي حدثنا أبو إسحق الهمداني عن الحارث
قال رسول الله ﷺ من ملك زادا وراحلة تبلغه إلى بيت الله ولم يحج فلا عليه أن يموت يهوديا أو نصرانيا وذلك أن الله يقول في كتابه {ولله على الناس حج البيت من استطاع إليه سبيلا}
No references are available.
[Daif] Ibn Adi (7/2580) also narrated it through Hilal, and he is discarded as a narrator, so the chain is extremely daif. Ibn Jawzi mentioned it in al-Mawduat (2/209) through the route of Tirmidhi, and it has daif corroborating narrations in Bayhaqi (4/334) and elsewhere. See also Nasb Raya (4/411) and elsewhere.