Sunan Abi Dawud — The Rites of Hajj (Kitab Al-Manasik Wa'l-Hajj) — Hadith No: 1881
Translation
Ibn ‘Abbas said When the Apostle of Allaah(ﷺ) came to Makkah he was ill. So, he performed the circumambulation on his Camel. He touched the corner (Black Stone) with a crooked stick as often as he came to it. When he finished the circumambulation, he made his Camel kneel down and offered two rak’ahs of prayer