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 became very hungry, and we got some camels and sheep. At that time the Messenger of Allah (peace and blessings be upon him) was at the rear of the army. The people hastened, slaughtered the animals and set the cooking pots on the fire. When the Messenger of Allah (peace and blessings be upon him) arrived, he gave an order concerning them and the pots were overturned. Then he divided them, counting ten sheep as equal to one camel.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 18009