(12) باب قِسْمَةِ الْغَنَمِ وَالْعَدْلِ فِيهَا
Narrated `Uqba bin 'Amir:
that Allah's Messenger (ﷺ) gave him some sheep to distribute among his companions in order to sacrifice them and a kid was left. He told the Prophet (ﷺ) about it and the Prophet (ﷺ) said to him, "Sacrifice it on your behalf."
Reference: Sahih al-Bukhari 2500
In-book reference: Book 47, Hadith 17
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 3, Book 44, Hadith 679