ذِكْرُ السَّبَبِ الَّذِي مِنْ أَجْلِهِ فَعَلَ ﷺ مَا وَصَفْنَا
"When 'Abdullah bin Ubayy died, his son came to the Prophet and said: 'Give me your shirt so that I may shroud him in it, and (some and) offer the (funeral) prayer for him, and pray for forgiveness for him'. So he gave him his shirt then he said: 'When you have finished, inform me and I will offer the (funeral) prayer for him.' But 'Umar stopped him and said: 'Hasn't Allah forbidden you to offer the (funeral) prayer for the hypocrites?' He said: 'I have two options. Whether you ask forgiveness for them (hypocrites) or ask no forgiveness for them." So he offered the (funeral) prayer for him. Then Allah, Most High, revealed: 'And never pray (funeral prayer) for any of them (hypocrites) who dies, nor stand at his grave.' So he stopped offering the (funeral) prayer for them." (Using translation from Nasāʾī 1900)
أَنَّ عَبْدَ اللَّهِ بْنَ أُبَيٍّ لَمَّا مَاتَ جَاءَ ابْنُهُ إِلَى رَسُولِ اللَّهِ ﷺ فَقَالَ أَعْطِنِي قَمِيصَكَ حَتَّى أُكَفِّنَهُ فِيهِ وَصَلِّ عَلَيْهِ وَاسْتَغْفِرْ قَالَ فَأَعْطَاهُ قَمِيصَهُ وَقَالَ «إِذَا فَرَغْتَ فَآذِنِّي حَتَّى أُصَلِّيَ عَلَيْهِ» فَلَمَّا فَرَغَ آذَنَهُ فَلَمَّا أَرَادَ أَنْ يُصَلِّيَ عَلَيْهِ جَذَبَهُ عُمَرُ رِضْوَانُ اللَّهِ عَلَيْهِ وَقَالَ أَلَيْسَ قَدْ نَهَاكَ اللَّهُ أَنْ تُصَلِّيَ عَلَى الْمُنَافِقِينَ؟ فَقَالَ النَّبِيُّ ﷺ «أَنَا بَيْنَ خِيَرَتَيْنِ قَالَ اللَّهُ {اسْتَغْفِرْ لَهُمْ أَوْ لَا تَسْتَغْفِرْ لَهُمْ} » قَالَ فَنَزَلَتْ {وَلَا تُصَلِّ عَلَى أَحَدٍ مِنْهُمْ مَاتَ أَبَدًا وَلَا تَقُمْ عَلَى قَبْرِهِ} قَالَ فَتَرَكَ الصَّلَاةَ عَلَيْهِ