The Book of Pilgrimage (Kitab Al-Hajj)

Muslim :: Book 7 : Hadith 2982

Jabir (b. Abdullab) (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) 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).

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star