Bulugh al-Maram, Book 10, Hadith 1247 (English)

Ibn 'Abbas (RAA) narrated, 'When Ma'iz came to the Prophet (admitting that he had committed adultery), he said to him, "Perhaps you have just kissed, or touched or looked (at the woman)." Ma'iz said,'No, O Messenger of Allah.' Related by Al-Bukhari.

وَعَنْ اِبْنِ عَبَّاسٍ رَضِيَ اَللَّهُ عَنْهُمَا قَالَ: { لَمَّا أَتَى مَاعِزُ بْنُ مَالِكٍ إِلَى اَلنَّبِيِّ ‏- صلى الله عليه وسلم ‏-قَالَ لَهُ: "لَعَلَّكَ قَبَّلْتَ, أَوْ غَمَزْتَ, أَوْ نَظَرْتَ?" قَالَ: لَا يَا رَسُولَ اَللَّهِ.‏ } رَوَاهُ اَلْبُخَارِيُّ (1572)‏ ‏5 ‏- صحيح.‏ رواه البخاري (6824)‏ وتمامه: "قال: أنكتها ‏-لا يكني‏- قال: فعند ذلك أمر برجمه ".‏

sunnah.com

also referenced under: Book 10, Hadith 1208 (In-Book)