Mishkat al-Masabih
Mishkat al-Masabih 1593
وَعَن عبد الله بن عَمْرو قَالَ ك تُوُفِّيَ رَجُلٌ بِالْمَدِينَةِ مِمَّنْ وُلِدَ بِهَا فَصَلَّى عَلَيْهِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ: «يَا لَيْتَهُ مَاتَ بِغَيْرِ مَوْلِدِهِ» . قَالُوا وَلِمَ ذَاكَ يَا رَسُولَ اللَّهِ؟ قَالَ: «إِنَّ الرَّجُلَ إِذَا مَاتَ بِغَيْرِ مَوْلِدِهِ قِيسَ لَهُ مِنْ مَوْلِدِهِ إِلَى مُنْقَطَعِ أَثَرِهِ فِي الْجَنَّةِ» . رَوَاهُ النَّسَائِيّ وَابْن مَاجَه
Abd Allah ibn Amr said: A man who had been born in Medina died there, and the Prophet prayed over him at his funeral and said: If only he had died somewhere other than his birthplace. They asked: Why is that, Messenger of God? He replied: When a person dies somewhere other than his birthplace, a distance will be measured for him in Paradise from his birthplace to the point where his trail ends.
Al-Nasai and Ibn Majah transmitted it.
Translation notes
The Arabic source contains an isolated ك after قال, treated as a transcription artifact.