أَخْبَرَنَا مُحَمَّدُ بْنُ الْحُسَيْنِ الْقَطَّانُ ، أَخْبَرَنَا عَلِيُّ بْنُ عَبْدِ الرَّحْمَنِ بْنِ مَاتِيٍّ ، حَدَّثَنَا أَحْمَدُ بْنُ حَازِمِ بْنِ أَبِي غَرَزَةَ ، أَخْبَرَنَا عُبَيْدُ اللَّهِ بْنُ مُوسَى ، عَنِ ابْنِ عُيَيْنَةَ ، عَنِ الزُّهْرِيِّ ، عَنْ عُبَيْدِ اللَّهِ بْنِ عَبْدِ اللَّهِ بْنِ عُتْبَةَ ، عَنِ ابْنِ عَبَّاسٍ قَالَ : كَانَ رَجُلٌ مِنْ أَصْحَابِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَهْوَى امْرَأَةً فَكَانَ ذَاتَ يَوْمٍ جَالِسًا عِنْدَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَاسْتَأْذَنَ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فِي حَاجَةٍ فَأَذِنَ لَهُ ، فَخَرَجَ فِي يَوْمٍ مَطِيرٍ ، فَإِذَا هُوَ بِامْرَأَةٍ عَلَى غَدِيرٍ تَغْتَسِلُ فَلَمَّا رَآهَا جَلَسَ مِنْهَا مَجْلِسَ الرَّجُلِ مِنَ امْرَأَتِهِ ، وَحَرَّكَ ذَكَرَهُ فَإِذَا هُوَ مِثْلُ الْهُدْبَةِ ، فَقَامَ نَادِمًا ، فَأَتَى النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَذَكَرَ ذَلِكَ لَهُ ، فَقَالَ لَهُ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " أَرْبَعَ رَكَعَاتٍ " فَأَنْزَلَ اللَّهُ عَزَّ وَجَلَّ : ( وَأَقِمِ الصَّلَاةَ طَرَفَيِ النَّهَارِ وَزُلَفًا مِنَ اللَّيْلِ إِنَّ الْحَسَنَاتِ يُذْهِبْنَ السَّيِّئَاتِ ذَلِكَ ذِكْرَى لِلذَّاكِرِينَ ) .
Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) said that a man from among the Companions of the Prophet (peace and blessings be upon him) was infatuated with a woman. One day he was sitting with the Messenger of Allah (peace and blessings be upon him) when he asked the Prophet (peace and blessings be upon him) for permission to attend to some need, and he (peace and blessings be upon him) gave him permission. He went out on a rainy day and suddenly saw a woman bathing at a pool. When he saw her, he sat by her the way a man sits with his wife, and he moved his private part, but it turned out (limp) like the fringe of a garment. So he got up full of remorse, came to the Prophet (peace and blessings be upon him) and told him (peace and blessings be upon him) about it. The Messenger of Allah (peace and blessings be upon him) said to him: "Pray four rak'ahs." Then Allah, the Mighty and Majestic, revealed this verse: "And establish prayer at the two ends of the day and in some hours of the night. Indeed, good deeds remove evil deeds. That is a reminder for those who remember."