كتاب الحج
15  
The Book of Pilgrimage
(54)
Chapter: The number of pebbles for stoning the Jamrahs is seven at a time
(54)
باب بَيَانِ أَنَّ حَصَى الْجِمَارِ سَبْعٌ ‏
Sahih Muslim 1300

Jabir (b. Abdullab) (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:

Odd number of stones are to be used for cleaning (the private parts after answering the call of nature), and casting of pebbles at the Jamras is to be done by odd numbers (seven), and (the number) of circuits between al-Safa' and al-Marwa is also odd (seven), and the number of circuits (around the Ka'ba) is also odd (seven). Whenever any one of you is required to use stones (for cleaning the private parts) he should use odd number of stones (three, five or seven).
وَحَدَّثَنِي سَلَمَةُ بْنُ شَبِيبٍ، حَدَّثَنَا الْحَسَنُ بْنُ أَعْيَنَ، حَدَّثَنَا مَعْقِلٌ، - وَهُوَ ابْنُ عُبَيْدِ اللَّهِ الْجَزَرِيُّ - عَنْ أَبِي الزُّبَيْرِ، عَنْ جَابِرٍ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ الاِسْتِجْمَارُ تَوٌّ وَرَمْىُ الْجِمَارِ تَوٌّ وَالسَّعْىُ بَيْنَ الصَّفَا وَالْمَرْوَةِ تَوٌّ وَالطَّوَافُ تَوٌّ وَإِذَا اسْتَجْمَرَ أَحَدُكُمْ فَلْيَسْتَجْمِرْ بِتَوٍّ ‏"‏ ‏.‏
Reference : Sahih Muslim 1300
In-book reference : Book 15, Hadith 347
USC-MSA web (English) reference : Book 7, Hadith 2982
  (deprecated numbering scheme)