Al-Hasan bin Muhammad – and he is Al-Hanafiyyah- narrated from Ubaidallah bin Abi Rafi who said: “I heard Ali bin Abi Talib saying: “the Messenger of Allah dispatched us – myself, Az-Zubair, and Al-Miqad bin Al- Aswad. He said: “Proceed until you reach Rawdah Khakh, where there is a lady carrying a letter. Take the letter from her and bring it to me.” So we proceeded on our way with our horses galloping until we reached the Rawdah. There we found the lady and said to her: “Give me the letter.” She said: “I have no letter.” We said: “Either you take out the letter, or we shall take off your clothes.’” He said: ‘So she took it out of her braid.’ He said: ‘We brought it to the Messenger of Allah, and it was from Hatib bin Abi Balta’ah, addressed to some of people among the idolaters of Makkah, infrmed them of some matter regarding the Prophet. So he said: “What is this O Hatib?” He said: “Do not be hasty with me O Messenger of Allah! I was a person who is an ally to the Quraish, not being related to them. The Muhajirun who are with you have relatives who can protect their families and their wealth in Makkah. So since I have no lineage among them, I wanted to do them a favor, so they might protect my relatives. I did not do this out of disbelief, nor to renegade from my religion, nor did I do it to chose disbelief [after Islam].” The Prophet said: “He said the truth.” Umar bin Al-Khattab said: “Allow me to chop off the head of this hypocrite!” The Prophet said: “Indeed he participated in (the battle of) Badr. You do not know, perhaps Allah looked at those who attended Badr and said: ‘O people of Badr! Do as you like, for I have forgiven you.’” He said: ‘It was about him, that this Surah was revealed: O you who believe! Do not take My enemies and your enemies as protecting friends showing affection towards them.’”

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

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

This hadith narrates an incident that occurred during the time of Prophet Muhammad (peace be upon him) when he sent Ali ibn Abi Talib, Al-Zubair ibn Al-Awwam, and Al-Miqdad ibn Al-Aswad to capture a woman carrying a message from Habtib ibn Abi Balta'a to the polytheists in Mecca. Habtib had sent information to the polytheists about the Prophet's plans. When these companions reached the woman, they asked her to produce the letter, threatening her that she must either show them the letter or remove her clothes. She eventually revealed the letter hidden in her hair. Once the letter was presented to the Prophet, he inquired why Habtib had committed such an act, to which Habtib explained that he sought to protect his family and relatives in Mecca and had no intention of disbelief or renouncing Islam. The Prophet acknowledged Habtib's honesty, while Umar ibn Al-Khattab wished to punish him for his actions; however, he was reminded of Habtib's status as a participant in the Battle of Badr, which indicates the honor and forgiveness granted to the Badr companions. The hadith highlights the importance of caution within Muslim communities and encourages believers to refrain from taking enemies of God as allies.

هذا الحديث يتحدث عن واقعة حدثت في زمن النبي محمد صلى الله عليه وسلم عندما بعث النبي علي بن أبي طالب، والزبير بن العوام، والمقداد بن الأسود للقبض على امرأة تحمل رسالة من حاطب بن أبي بلتعة إلى المشركين في مكة، حيث أرسل حاطب خبرًا للمشركين عن خطط النبي. وعندما وصل هؤلاء الصحابة إلى تلك المرأة، طلبوا منها تسليم الكتاب، وهددوها إما بأن تسلم الكتاب أو تخلع ثيابها. وبالفعل، سلمت الكتاب المقصود من شعرها. وبعد أن عُرض الكتاب على النبي، استفسر النبي عن السبب الذي دفع حاطب للقيام بهذا الفعل، فأوضح حاطب أنه كان يريد حماية عائلته وأقاربه في مكة، ولم يكن بقصد الكفر أو الرجوع عن الإسلام. ولقد أقر النبي بصدقه في قوله، بينما أراد عمر بن الخطاب أن يُعاقبه على هذا الفعل، لكنه حُذر لأنه من أصحاب بدر، وهذا يشير إلى مكانة أصحاب بدر في الإسلام والمغفرة من الله لهم. الحديث يُظهر أهمية الحذر في المجتمعات الإسلامية ويدعو المؤمنين إلى عدم اتخاذ أعداء الله أصدقاء.

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