Sahih al-Bukhari, Hadith 1647 ⓘ
Narrated `Amr bin Dinar: I heard Ibn `Umar saying, "The Prophet arrived at Mecca and performed Tawaf of the Ka`ba and then offered a two-rak`at prayer and then performed Tawaf between Safa and Marwa." Ibn `Umar then recited (the verse): "Verily! In Allah's Messenger (p.b.u.h) you have a good example. "
حَدَّثَنَا الْمَكِّيُّ بْنُ إِبْرَاهِيمَ، عَنِ ابْنِ جُرَيْجٍ، قَالَ أَخْبَرَنِي عَمْرُو بْنُ دِينَارٍ، قَالَ سَمِعْتُ ابْنَ عُمَرَ ـ رضى الله عنهما ـ قَالَ قَدِمَ النَّبِيُّ صلى الله عليه وسلم مَكَّةَ، فَطَافَ بِالْبَيْتِ، ثُمَّ صَلَّى رَكْعَتَيْنِ، ثُمَّ سَعَى بَيْنَ الصَّفَا وَالْمَرْوَةِ، ثُمَّ تَلاَ {لَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللَّهِ أُسْوَةٌ حَسَنَةٌ}.
also referenced under: Book 25, Hadith 128 (In-Book) & Volume 2, Book 26, Hadith 709 (USC-MSA)