The Messenger of Allah ﷺ would only touch two corners of the House, the Black Corner and the one next to it on the side of the dwellings of the Jumahis.
أخبرنا أحمد بن عمرو والحارث بن مسكين قراءة عليه وأنا أسمع عن ابن وهب قال أخبرني يونس عن ابن شهاب
لم يكن رسول الله ﷺ يستلم من أركان البيت إلا الركن الأسود والذي يليه من نحو دور الجمحيين
Muslim narrated it, in the book of Hajj, chapter on the recommendation of touching the two Yemeni corners during tawaf but not the other two corners, hadith no. 243/1267, from Ahmad bin Amr bin Sarh, with this chain. It is also in Al-Kubra, hadith no. 3933.