Abu Huraira (may Allah be pleased with him) reports that the Messenger of Allah (peace and blessings be upon him) said: "Whoever sold some goods (on credit) and then found his goods with a person who has become insolvent, and he has not received any of its price, then the goods will belong to him. But if he has received some amount from the buyer, then for the remaining price he will be like the rest of the creditors."