Abdullah bin Umar reported,

The Messenger of Allah ﷺ arrived and circled the House seven times, then prayed two rakats. Waki said, meaning at the Station of Ibrahim. Then he went out to Safa.

Ibn Majah 2959

Sahih

حدثنا علي بن محمد وعمرو بن عبد الله قالا حدثنا وكيع عن محمد بن ثابت العبدي عن عمرو بن دينار

عن ابن عمر

أن رسول الله ﷺ قدم فطاف بالبيت سبعا ثم صلى ركعتين قال وكيع يعني عند المقام ثم خرج إلى الصفا

ابن ماجه 2959صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Rites of pilgrimage
Chapter
Two rakahs after tawaf
Numbering
Darussalam 2959
Ibn Majah 2959