Abdullah bin Masud reported,

A man came to the Prophet ﷺ and mentioned that he had gotten from a woman either a kiss or a touch with the hand or something of that sort, as though he were asking about its expiation. He said, then Allah revealed عز وجل. Then he related it like the report of Yazid.He said, a man got something short of adultery from a woman, so he went to Umar bin Khattab, who made the matter out to be grave for him. Then he went to Abu Bakr, who also made it out to be grave for him. Then he went to the Prophet ﷺ, and he related it like the report of Yazid and Mutamir.

Muslim 7003

Sahih

حدثنا عثمان بن أبي شيبة حدثنا جرير عن سليمان التيمي بهذا الإسناد قال أصاب رجل من امرأة شيئا دون الفاحشة فأتى عمر بن الخطاب فعظم عليه ثم أتى أبا بكر فعظم عليه ثم أتى النبي ﷺ فذكر بمثل حديث يزيد والمعتمر

مسلم 7003صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Tawba
Chapter
His saying, "Indeed good deeds remove bad deeds"
Numbering
Darussalam 7003
Muslim 7003