The Messenger of Allah ﷺ said, "Whoever finds his property intact in the possession of a man who has gone bankrupt has a greater right to it than anyone else."
حدثنا أبو بكر بن أبي شيبة حدثنا سفيان بن عيينة ح و حدثنا محمد بن رمح أنبأنا الليث بن سعد جميعا عن يحيى بن سعيد عن أبي بكر بن محمد بن عمرو بن حزم عن عمر بن عبد العزيز عن أبي بكر بن عبد الرحمن بن الحارث بن هشام
قال رسول الله ﷺ من وجد متاعه بعينه عند رجل قد أفلس فهو أحق به من غيره
Bukhari narrated it in the Book of Loans, chapter "If a person finds his property with an insolvent debtor, whether from a sale, a loan, or a deposit, he has more right to it," no. 2402, and Muslim narrated it in the Book of Musaqah, chapter "Whoever finds what he sold in the possession of the buyer who has become insolvent has the right to reclaim it," no. 1559, from the hadith of Yahya bin Saeed with this same wording.