“A man died in Al- Madinah, and he was one of those who were born in Al-Madinah. The Prophet ﷺ offered the funeral prayer for him and said: “Would that he had died somewhere other than his birthplace.” A man among the people said: “Why, O Messenger of Allah?” He said: “If a man dies somewhere other than his birthplace, a space will be measured for him in Paradise (as big as the distance) from the place where he was born to the place where he died.” (Using translation from Ibn Mājah 1614)
تُوُفِّيَ رَجُلٌ بِالْمَدِينَةِ فَصَلَّى عَلَيْهِ رَسُولُ اللهِ ﷺ فَقَالَ يَا لَيْتَهُ مَاتَ فِي غَيْرِ مَوْلِدِهِ فَقَالَ رَجُلٌ مِنَ النَّاسِ لِمَ يَا رَسُولَ اللهِ؟ فَقَالَ رَسُولُ اللهِ ﷺ إِنَّ الرَّجُلَ إِذَا تُوُفِّيَ فِي غَيْرِ مَوْلِدِهِ قِيسَ لَهُ مِنْ مَوْلِدِهِ إِلَى مُنْقَطَعِ أَثَرِهِ فِي الْجَنَّةِ