The Messenger of Allah (ﷺ) abrogated some of his commands by others, just as the Qur'an…

Sahih Muslim Book 3 Hadith 99

Sahih Muslim #344

The Book of Menstruation 3:99

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.

Chapter: At the beginning of Islam, intercourse did not necessitate ghusl unless semen was emitted, then that was abrogated and ghusl becomes obligatory for intercourse

Grade: Sahih