The Messenger of Allah ﷺ said to Maaz when he confessed, "I have committed adultery," "Perhaps you only touched her, kissed her, or looked at her?" It was as if he feared that Maaz did not understand what adultery actually was.
حدثنا يحيى بن آدم حدثنا ابن المبارك عن معمر عن يحيى بن أبي كثير عن عكرمة
أن رسول الله ﷺ قال لماعز حين قال زنيت لعلك غمزت أو قبلت أو نظرت إليها قال كأنه يخاف أن لا يدري ما الزنا
No references are available.
Its isnad is sahih, and it is a longer version of 2617, see also 2876.