Sahih al-Bukhari 4687
صحيح البخاري#4687SahihNarrated Ibn Masud:A man kissed a woman and then came to Allah's Messenger (ﷺ) and told him of that, so this Divine Inspiration was revealed to the Prophet (ﷺ) 'And offer Prayers perfectly at the two ends of the day, and in some hours of the night; (i.e. (five) compulsory prayers). Verily, the good deeds remove the evil deeds (small sins) That is a reminder for the mindful.' (11.114) The man said, Is this instruction for me only?' The Prophet (ﷺ) said, "It is for all those of my followers who encounter a similar situation
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Every narration in Sahih al-Bukhari is accepted as Sahih (authentic) by the established status of the book.
In-book reference: 65:209