In one narration the words are: A goat was given to him (that is, to Sayyiduna Abu Rafi' (may Allah be pleased with him)) as a gift. He put its meat in the cooking pot. The Prophet (peace and blessings be upon him) came to the house and asked: "O Abu Rafi'! What is this?" I said: "O Messenger of Allah! This is goat meat that was given to us as a gift; we are cooking it in the pot." The Prophet (peace and blessings be upon him) said: "Hand me the foreleg."
Ahmad and al-Tabarani recorded it through various routes, and in some of its routes the words are: "The Prophet (peace and blessings be upon him) ordered me to prepare goat meat for him, so I prepared it."
Al-Tabarani recorded it in al-Mu'jam al-Awsat in abridged form, and one of the two chains of Ahmad is hasan (good).