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."
— Sahih Bukhari, Volume 3, Book 38: Representation, Authorization, Business by Proxy, Hadith #497