Abu Saeed Khudri reported,

A man suffered loss during the time of the Messenger of Allah ﷺ regarding fruits he had purchased, and his debts grew large.The Messenger of Allah ﷺ said, "Give him charity."So the people gave him charity, but it did not reach the amount needed to settle his debts.The Messenger of Allah ﷺ then said to the creditors, "Take what you find, and you are entitled to nothing beyond that."

Ibn Majah 2356

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا شبابة حدثنا الليث بن سعد عن بكير بن عبد الله بن الأشج عن عياض بن عبد الله بن سعد

عن أبي سعيد الخدري قال

أصيب رجل في عهد رسول الله ﷺ في ثمار ابتاعها فكثر دينه فقال رسول الله ﷺ تصدقوا عليه فتصدق الناس عليه فلم يبلغ ذلك وفاء دينه فقال رسول الله ﷺ خذوا ما وجدتم وليس لكم إلا ذلك يعني الغرماء

ابن ماجه 2356صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Rulings
Chapter
Declaring the insolvent bankrupt and selling his property for his creditors
Numbering
Darussalam 2356
Ibn Majah 2356