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