Concerning the Prophet's ﷺ pilgrimage, in a long hadith:Then he went out through the gate toward Safa, and when he drew near to Safa he recited, "Indeed Safa and Marwa are among the rites of Allah" [Baqarah 2:158]. "I begin with what Allah began with." So he began with Safa and climbed it until he could see the House. Then he faced the qibla, declared the oneness of Allah, magnified Him, and said, "There is no god but Allah alone, who has no partner. His is the dominion and His is the praise, and He has power over all things. There is no god but Allah alone. He fulfilled His promise, granted victory to His servant, and by Himself defeated the confederates."Then he made supplication in between, saying this three times. Then he descended toward Marwa, and when his feet reached the bottom of the valley he ran, and when they began to climb again he walked, until he came to Marwa. There he did upon Marwa just as he had done upon Safa. The hadith continues.
في حجة النبي ﷺ في حديث طويل: ثم خرج من الباب إلى الصفا، فلما دنا من الصفا قرأ: {إن الصفا والمروة من شعائر الله} أبدأ بما بدأ الله به فبدأ بالصفا، فرقي عليه حتى رأى البيت فاستقبل القبلة، فوحد الله، وكبره وقال: لا إله إلا الله وحده لا شريك له، له الملك وله الحمد، وهو على كل شيء قدير، لا إله إلا الله وحده أنجز وعده، ونصر عبده وهزم الأحزاب وحده ثم دعا بين ذلك، قال مثل هذا ثلاث مرات، ثم نزل إلى المروة حتى إذا انصبت قدماه في بطن الوادي سعى، حتى إذا صعدنا مشي، حتى أتى المروة، ففعل على المروة كما فعل على الصفا… الحديث.
Muslim narrated it in the Book of Hajj (1218) through several routes from Hatim bin Ismail Madani, from Jafar bin Muhammad, from his father, who said, "We came to visit Jabir bin Abdullah..." then he narrated the hadith in full.