It was in the Farewell Pilgrimage or on the Day of Victory.
Sahih Muslim Book 4, Hadith 289