Mishkat al-Masabih

Ibn ‘Umar said that when God’s messenger observed the circumambulation at the hajj or the ‘umra immediately on his arrival, he ran three circuits and walked four, then after making two prostrations he would go between as-Safa and al-Marwa. Bukhari and Muslim.

وَعَنِ ابْنِ عُمَرَ رَضِيَ اللَّهُ عَنْهُمَا قَالَ: كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا طَافَ فِي الْحَجِّ أَوِ الْعمرَة مَا يَقْدَمُ سَعَى ثَلَاثَةَ أَطْوَافٍ وَمَشَى أَرْبَعَةً ثُمَّ سَجَدَ سَجْدَتَيْنِ ثُمَّ يَطُوفُ بَيْنَ الصَّفَا والمروة