Sayyiduna Ibn Umar (may Allah be pleased with them both) said that when the Messenger of Allah (peace and blessings be upon him) arrived for Hajj or Umrah and performed the first tawaf, he would do three circuits jogging lightly and four walking at an ordinary pace, then pray two rak'ahs, then perform the circuits between Safa and Marwah.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9320