كتاب الحيض
3  
The Book of Menstruation
(21)
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
(21)
باب إِنَّمَا الْمَاءُ مِنَ الْمَاءِ ‏
Sahih Muslim 343 b

Abu Sa'id al-Khudri reported:

The Apostle of Allah (ﷺ) observed: Bathing is obligatory in case of seminal emission.
حَدَّثَنَا هَارُونُ بْنُ سَعِيدٍ الأَيْلِيُّ، حَدَّثَنَا ابْنُ وَهْبٍ، أَخْبَرَنِي عَمْرُو بْنُ الْحَارِثِ، عَنِ ابْنِ شِهَابٍ، حَدَّثَهُ أَنَّ أَبَا سَلَمَةَ بْنَ عَبْدِ الرَّحْمَنِ حَدَّثَهُ عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ، عَنِ النَّبِيِّ صلى الله عليه وسلم أَنَّهُ قَالَ ‏ "‏ إِنَّمَا الْمَاءُ مِنَ الْمَاءِ ‏"‏ ‏.‏
Reference : Sahih Muslim 343b
In-book reference : Book 3, Hadith 98
USC-MSA web (English) reference : Book 3, Hadith 679
  (deprecated numbering scheme)