Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) says that the Messenger of Allah (peace and blessings be upon him) came to Makkah while he was unwell, so he (peace and blessings be upon him) performed the tawaf of the House on his she-camel. Whenever he came to the corner, he would touch it with his staff. When he had finished his tawaf, he made the she-camel kneel and prayed two rak'ahs.
This is how Yazid bin Abi Ziyad narrated it, and this is an addition that he alone narrated; and Allah knows best.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9375