The judge of Madinah, Abu Khalda Al-Zurqi, narrated that we brought a destitute man to Abu Hurairah (may Allah be pleased with him), so he said: Regarding this, the Messenger of Allah (ﷺ) said: "Whoever dies or becomes destitute, then if the owner of the goods finds his property in its original condition, he has a greater right to it."
Hadith Referenceمسند الإمام الشافعي / كتاب الرهن والقراض والحجر والتفليس واللقطة / 1485
Hadith Takhrijاخرجه أبو داود البيوع، باب في الرجل يفلس فيجد الرجل متاعه بعينه عنده (3523) وابن ماجة، الاحكام، باب من وجد متاعه بعينه عند رجل قد افلس (2360) ۔وصححه ابن الجارود (634) ، والحاكم: 2/ 50 والذهبي۔