Abu Hurairah (RA) reported Allah's Messenger (ﷺ) as saying: When a inan becomes insolvent, and the other person (seller) finds his goods intact with him, he is more entitled to get them than anyone else.
Hadith ReferenceSahih Muslim / The Book of Musaqah / Hadith: 1559