حَدَّثَنَا عَبْدُ اللهِ بْنُ مُحَمَّدِ بْنِ سَعِيدِ بْنِ أَبِي مَرْيَمَ، ثنا مُحَمَّدُ بْنُ يُوسُفَ الْفِرْيَابِيُّ، ثنا سُفْيَانُ، عَنْ سِمَاكِ بْنِ حَرْبٍ، وَالْأَعْمَشِ، عَنْ إِبْرَاهِيمَ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ يَزِيدَ، عَنِ ابْنِ مَسْعُودٍ قَالَ: جَاءَ رَجُلٌ إِلَى النَّبِيِّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ فَقَالَ: " إِنِّي أَصَبْتُ مِنْهَا كُلَّ شَيْءٍ إِلَّا الْجِمَاعَ - يَعْنِي مِنِ امْرَأَةٍ - فَأَنْزَلَ اللهُ عَزَّ وَجَلَّ {أَقِمِ الصَّلَاةَ طَرَفَيِ النَّهَارِ وَزُلَفًا مِنَ اللَّيْلِ إِنَّ الْحَسَنَاتِ يُذْهِبْنَ السَّيِّئَاتِ} [هود: ١١٤] "
It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that a man came to the Prophet (peace and blessings be upon him) and said: I have done everything with a woman except intercourse. So Allah, the Mighty and Majestic, revealed this verse: "Establish prayer at the two ends of the day and in some parts of the night. Indeed, good deeds wipe out bad deeds" [Surah Hud: 114].