BAYHAQI 12400:
from ʿĀʾishah —
A client of the Prophet ﷺ died and left some property, but he left no child or relative. The Messenger of Allah ﷺ said: Give what he has left to a man belonging to his village. Abu Dawud said: The tradition of Sufyan is more perfect. Musaddad said: Thereupon the Prophet ﷺ said: Is there anyone belonging to his land ? They replied: Yes. He said: Then give him what he has left. (Using translation from Abū Dāʾūd 2902)
البيهقي ١٢٤٠٠:
عن عاءشه —
أَنَّ رَجُلًا وَقَعَ مِنْ نَخْلَةٍ فَمَاتَ وَتَرَكَ شَيْئًا وَلَمْ يَدَعْ وَلَدًا وَلَا حَمِيمًا فَقَالَ رَسُولُ اللهِ ﷺ أَعْطُوا مِيرَاثَهُ رَجُلًا مِنْ أَهْلِ قَرْيَتِهِ
hadithunlocked.com