(1) باب وَكَالَةُ الشَّرِيكِ الشَّرِيكَ فِي الْقِسْمَةِ وَغَيْرِهَا
Narrated `Uqba bin Amir:
that the Prophet (ﷺ) had given him sheep to distribute among his companions and a male kid was left (after the distribution). When he informed the Prophet (ﷺ) of it, he said (to him), "Offer it as a sacrifice on your behalf."
Reference: Sahih al-Bukhari 2300
In-book reference: Book 40, Hadith 2
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 3, Book 38, Hadith 497