Sahih Muslim

Hadith #777

Abu al. 'Ala' b. al-Shikhkhir said:The Messenger of Allah (ﷺ) abrogated some of his commands by others, just as the Qur'an abrogates some part with the other