Abu Yasar narrated: A woman came to buy dates from me. I told her that there were superior dates in the house. So, she entered the house with me and I bowed towards her and kissed her. Then I came to Abu Bakr and mentioned to him what had transpired. He said, “Conceal your sin and repent (to Allah) and do not tell anyone.” But, I was impatient and I came to Umar and told him all that. He said, “Keep your secret, repent (to Allah) and do not tell anyone.” But, I was impatient and came to the Prophet and mentioned to him all that had happened. He asked, “Did you do like that to the wife of a ghazi going out in Allah’s path?” Eventually, I wished that I had become a Muslim only at that hour and I was convinced that I was one of the dwellers of Hell. Allah’s Messenger (SAW) bowed down his head for a long time till he received revelation;
"And establish salah at both ends of the day, and in the early hours of the night. Surely, good deeds erase bad deeds. That is a reminder for the mindful." (11 : 114)
When I came to him, Allah’s Messenger (SAW) recited the verse to me. His Sahabah (RA) asked, “O Messenger of Allah, is this a specific command (for him) or for all people generally?” He said, “Rather, for all people generally.”