Narrated Ibn 'Umar: 'Abdullah bin 'Abdullah bin Ubayy came to the Messenger of Allah (ﷺ) when his father died, and said: 'Give me your shirt to shroud him in and perform the Salat upon him, and seek forgiveness for him.' So he (ﷺ) gave him his shirt, and said: 'When you are finished then inform me.' So when he wanted to perform the Salat, 'Umar tugged at him and said: 'Has not Allah prohibited that you perform Salat over the hypocrites?' He said: 'I have been given the choice between two: 'Whether you seek forgiveness for them or you do not seek forgiveness for them.... (9:80)' So he performed the Salat for him. Then Allah revealed: 'And never pray for any of them who dies, nor stand at his grave... (9:84)' So he abandoned praying for them.

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

Explanation
تفسير الحديث

This hadith narrates an incident from the time of Prophet Muhammad (peace be upon him) when Abdullah ibn Abdullah ibn Ubayy approached the Prophet after the death of his father, Abdullah ibn Ubayy, who was a prominent hypocrite in Medina. Abdullah asked the Prophet for his shirt to wrap his father for burial and requested him to pray for and seek forgiveness for him. The Prophet (peace be upon him) gave him his shirt, but when he intended to pray for him, Umar ibn al-Khattab (may Allah be pleased with him) restrained him, reminding him that Allah has prohibited praying for hypocrites (as mentioned in Surah At-Tawbah, verse 80). The Prophet expressed that he was caught between two choices: to seek forgiveness for him or not, reflecting his compassionate nature and desire for mercy. Ultimately, the Prophet prayed for Abdullah ibn Ubayy and then received divine revelation instructing him not to pray for any of the hypocrites who died (Surah At-Tawbah, verse 84). Consequently, the Prophet ceased praying for the hypocrites based on this revelation, emphasizing the importance of adhering to divine commands in all circumstances. This hadith illustrates the Prophet's human side in dealing with people compassionately, yet it also highlights the significance of following divine guidance, even in difficult situations. It is considered a sound hadith that demonstrates sensitivity towards the topic of hypocrites in the Muslim community.

هذا الحديث يتحدث عن موقف حدث في زمن النبي محمد صلى الله عليه وسلم عندما جاء عبد الله بن عبدالله بن أبي إلى النبي ليطلب منه أن يكفّن أباه، وهو عبد الله بن أبيّ ابن سلول، الذي كان من أبرز المنافقين في المدينة. يطلب عبد الله بن عبدالله من النبي أن يعطيه قميصه لكفن والده، كما يطلب منه أن يصلي عليه ويستغفر له. النبي صلى الله عليه وسلم أعطاه القميص، لكنه عندما أراد أن يصلي عليه، منعه عمر بن الخطاب - رضي الله عنه - محذراً إياه بأن الله نهى عن الصلاة على المنافقين (كما ورد في سورة التوبة، الآية 80). النبي قال إنه في حيرة بين خيارين: إما أن يستغفر له أو لا، مما يدل على روحه الطيبة ورغبته في الرحمة. في النهاية، يصلي النبي على عبد الله بن أبي ثم يأتي الوحي من الله تعالى بعدم الصلاة على المنافقين (سورة التوبة، الآية 84). بذلك، يترك النبي الصلاة على المنافقين بناءً على هذا الوحي، مما يبين أهمية اتباع أوامر الله في كل الأحوال. الحديث يُظهر طبيعة النبي ﷺ كإنسان يعامل الناس برحمة، ولكنه أيضاً يظهر أهمية الالتزام بالتوجيهات الربانية حتى في المواقف الصعبة. هذا الحديث يعتبر من الأحاديث الجيدة التي تدل على حساسية التعامل مع موضوع المنافقين في المجتمع الإسلامي.

Source: Jami' Al-Tirmidhi by Abu `Isa Muhammad at-Tirmidhi