From Sahih Muslim (Hadith 3987):
Abu Huraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:He who found his property intact with a person (who bought it but who later on) became insolvent (or a person who became insolvent), he (the seller) is entitled to get it more than anyone else
Reference: Muslim 3987