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.
English reference: Book 10, Hadith 1247
Arabic reference: Book 10, Hadith 1208