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 Messenger of Allah ﷺ you have a good example. "
قَدِمَ النَّبِيُّ ﷺ مَكَّةَ فَطَافَ بِالْبَيْتِ ثُمَّ صَلَّى رَكْعَتَيْنِ ثُمَّ سَعَى بَيْنَ الصَّفَا وَالْمَرْوَةِ ثُمَّ تَلاَ {لَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللَّهِ أُسْوَةٌ حَسَنَةٌ}