Sayyiduna Miqdad bin al-Aswad (may Allah be pleased with him) said: We were with the Prophet (peace and blessings be upon him), and "he (peace and blessings be upon him) divided us, ten men to each house, and I was with the Prophet (peace and blessings be upon him), and we had a goat that we lived on."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 17702