Abu Ayyub reported that he had heard like this from the Messenger of Allah (ﷺ).

Sahih Muslim Book 3 Hadith 104

Sahih Muslim #347 b

The Book of Menstruation 3:104

Abu Ayyub reported that he had heard like this from the Messenger of Allah (ﷺ).

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