Sunan Abi Dawud — The Rites of Hajj (Kitab Al-Manasik Wa'l-Hajj) — Hadith No: 1903
Translation
Isma’il bin Abi Khalid said I heard ‘Abd Allaah bin Abi Aufa narrated this tradition. His version added “He then came to Al Safa’ and Al Marwah and ran between them seven times and then shaved his head