Mishkat al-Masabih #2479
The Rites of Pilgrimage
The Arabic includes the chain of narration (sanad) and the collector's commentary; the English translation shows the Prophet's words only.
وَعَنْ عَابِسِ بْنِ رَبِيعَةَ قَالَ: رَأَيْت عمر يقبل الْحجر وَيَقُول: وَإِنِّي لَأَعْلَمُ أَنَّكَ حَجَرٌ مَا تَنْفَعُ وَلَا تَضُرُّ وَلَوْلَا أَنِّي رَأَيْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يقبل مَا قبلتك
‘Abis b Rabi'a said he saw ‘Umar kissing the stone and saying, “I know for sure that you are a stone which can neither benefit nor injure, and had I not seen God’s messenger kissing you I would not have kissed you.”
(Bukharl and Muslim.)
About Mishkat al-Masabih
This hadith is #2479 from Mishkat al-Masabih, in the Book of The Rites of Pilgrimage.