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. '