Sayyiduna Rafi' bin Khadij (may Allah be pleased with him) said: We were with the Messenger of Allah (peace and blessings be upon him) at Dhu al-Hulayfah. The people were struck by hunger. We had camels and goats, and the Messenger of Allah (peace and blessings be upon him) was among the rest of the people. They hurried, slaughtered (the animals) and set up the cooking pots (on the fires). The Messenger of Allah (peace and blessings be upon him) came to them and ordered the pots to be overturned. Then he (peace and blessings be upon him) divided (the spoils) and made ten goats equal to one camel.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20435