From Sahih Muslim (Hadith 3064):
Ibn 'Umar (Allah be pleased with them) reported:I have not abandoned touching of Yamani corners (and kissing of) the Stone since I saw Allah's messneger (ﷺ) touching them both In hardship and ease
Reference: Muslim 3064