Hadithcore
Mishkat al-Masabih, 2570

He said that God’s messenger went round the House on a camel, and as often as he came to the corner he pointed to it with something in his hand and said, “God is most great.” Bukhari transmitted it.

وَعَنْهُ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ طَافَ بِالْبَيْتِ عَلَى بَعِيرٍ كُلَّمَا أَتَى عَلَى الرُّكْنِ أَشَارَ إِلَيْهِ بِشَيْءٍ فِي يدِه وكبَّرَ. رَوَاهُ البُخَارِيّ

References1 variant
In-Book Reference
Book 10, Hadith 64