Jami` at-Tirmidhi, Volume 5, Book 44, Hadith 3097 (DarusSalam)

Narrated Ibn 'Abbas: "I heard 'Umar bin Al-Khattab saying: 'When 'Abdullah bin Ubayy died, the Messenger of Allah was called to perform the funeral prayer over him. The Messenger of Allah came to him, and when he stood over him, about to perform the prayer, he turned until he was standing at his chest. I said: "O Messenger of Allah! (You pray) for Allah's enemy 'Abdullah bin Ubayy, who on this day said this and that" - mentioning different days. He said: "The Messenger of Allah was smiling until I had said too much to him and he said: 'Leave me O 'Umar! Indeed I have been given the choice, so I chose. I was told: Whether you ask forgiveness for them, or do not ask for forgiveness for them. Even though you ask for their forgiveness seventy times, Allah will not forgive them (9:80). If I knew that were I to ask more than seventy times that he would be forgiven, then I would do so." He said: "Then he performed the Salat for him and walked with him (his funeral procession) and he stood at his grave until it was finished. I was amazed at myself and my daring to talk like that to the Messenger of Allah, while Allah and His Messenger know better. But by Allah! It was not long until these two Ayat were revealed: 'And never pray for any of them who dies nor stand at his grave... (9:84) until the end of the Ayah. He said: "So afterwards the Messenger of Allah did not perform the Salat for a hypocrite, nor would he stand at his grave until Allah took him."

حَدَّثَنَا عَبْدُ بْنُ حُمَيْدٍ، حَدَّثَنَا يَعْقُوبُ بْنُ إِبْرَاهِيمَ بْنِ سَعْدٍ، عَنْ أَبِيهِ، عَنْ مُحَمَّدِ بْنِ إِسْحَاقَ، عَنِ الزُّهْرِيِّ، عَنْ عُبَيْدِ اللَّهِ بْنِ عَبْدِ اللَّهِ بْنِ عُتْبَةَ، عَنِ ابْنِ عَبَّاسٍ، قَالَ سَمِعْتُ عُمَرَ بْنَ الْخَطَّابِ، يَقُولُ لَمَّا تُوُفِّيَ عَبْدُ اللَّهِ بْنُ أُبَىٍّ دُعِيَ رَسُولُ اللَّهِ صلى الله عليه وسلم لِلصَّلاَةِ عَلَيْهِ فَقَامَ إِلَيْهِ فَلَمَّا وَقَفَ عَلَيْهِ يُرِيدُ الصَّلاَةَ تَحَوَّلْتُ حَتَّى قُمْتُ فِي صَدْرِهِ فَقُلْتُ يَا رَسُولَ اللَّهِ أَعَلَى عَدُوِّ اللَّهِ عَبْدِ اللَّهِ بْنِ أُبَىٍّ الْقَائِلِ يَوْمَ كَذَا كَذَا وَكَذَا يَعُدُّ أَيَّامَهُ ‏.‏ قَالَ وَرَسُولُ اللَّهِ صلى الله عليه وسلم يَتَبَسَّمُ حَتَّى إِذَا أَكْثَرْتُ عَلَيْهِ قَالَ ‏"‏ أَخِّرْ عَنِّي يَا عُمَرُ ‏.‏ إِنِّي خُيِّرْتُ فَاخْتَرْتُ قَدْ قِيلَ لِي ‏:‏ ‏(‏ اسْتَغْفِرْ لَهُمْ أَوْ لاَ تَسْتَغْفِرْ لَهُمْ إِنْ تَسْتَغْفِرْ لَهُمْ سَبْعِينَ مَرَّةً فَلَنْ يَغْفِرَ اللَّهُ لَهُمْ ‏)‏ لَوْ أَعْلَمُ أَنِّي لَوْ زِدْتُ عَلَى السَّبْعِينَ غُفِرَ لَهُ لَزِدْتُ ‏"‏ ‏.‏ قَالَ ثُمَّ صَلَّى عَلَيْهِ وَمَشَى مَعَهُ فَقَامَ عَلَى قَبْرِهِ حَتَّى فُرِغَ مِنْهُ قَالَ فَعَجَبٌ لِي وَجُرْأَتِي عَلَى رَسُولِ اللَّهِ صلى الله عليه وسلم وَاللَّهُ وَرَسُولُهُ أَعْلَمُ فَوَاللَّهِ مَا كَانَ إِلاَّ يَسِيرًا حَتَّى نَزَلَتْ هَاتَانِ الآيَتَانِ ‏:‏ ‏(‏وَلَا تُصَلِّ عَلَى أَحَدٍ مِنْهُمْ مَاتَ أَبَدًا وَلاَ تَقُمْ عَلَى قَبْرِهِ ‏)‏ إِلَى آخِرِ الآيَةِ قَالَ فَمَا صَلَّى رَسُولُ اللَّهِ صلى الله عليه وسلم بَعْدَهُ عَلَى مُنَافِقٍ وَلاَ قَامَ عَلَى قَبْرِهِ حَتَّى قَبَضَهُ اللَّهُ ‏.‏ قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ غَرِيبٌ ‏.‏

sunnah.com