From Sahih Muslim (Hadith 3073):
Ibn 'Abbas (Allah be pleased with him) reported that Allah's Messenger (ﷺ) circumambulated the House on the occasion of the Farewell Pilgrimage on the back of his camel and touched the Corner (of Black Stone) with a stick
Reference: Muslim 3073