Ibn Umar (may Allah be pleased with them both) said that the Messenger of Allah (peace and blessings be upon him) used to touch the Yamani Corner and the Black Corner in every circuit, and not the other two.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9234