Abdullah bin Amr bin As reported,

A man who had been born in Madinah died in Madinah, and the Prophet ﷺ prayed over him and said, "If only he had died somewhere other than his birthplace."A man among the people asked, "Why is that, Messenger of Allah?"He replied, "When a man dies in a place other than his birthplace, a measure is granted to him in Paradise from his birthplace to the place where his trace ended."

Ibn Majah 1614

Hasan

حدثنا حرملة بن يحيى قال حدثنا عبد الله بن وهب حدثني حيي بن عبد الله المعافري عن أبي عبد الرحمن الحبلي

عن عبد الله بن عمرو قال

توفي رجل بالمدينة ممن ولد بالمدينة فصلى عليه النبي ﷺ فقال يا ليته مات في غير مولده فقال رجل من الناس ولم يا رسول الله قال إن الرجل إذا مات في غير مولده قيس له من مولده إلى منقطع أثره في الجنة

ابن ماجه 1614حسن
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Funerals
Chapter
Who died as a stranger
Numbering
Darussalam 1614
Ibn Majah 1614