[Machine] Hudayfah and his father were taken by the polytheists before the Battle of Badr, and they wanted to kill them. So, they swore an oath by Allah and made a pact that they would not assist the Muslims against them. They both swore to them, and they sent them. They came to the Prophet ﷺ and informed him. He said, "We have already sworn to them. If you wish, you can fight alongside us." He replied, "We will fulfill our oath to them, and we will seek the help of Allah against them."
أَخَذَ حُذَيْفَةَ وَأَبَاهُ الْمُشْرِكُونَ قَبْلَ بَدْرٍ فَأَرَادُوا أَنْ يَقْتُلُوهُمَا فَأَخَذُوا عَلَيْهِمَا عَهْدَ اللَّهِ وَمِيثَاقَهُ أَنْ لَا يُعِينَانِ عَلَيْهِمْ فَحَلَفَا لَهُمْ فَأَرْسَلُوهُمَا فَأَتَيَا النَّبِيَّ ﷺ فَأَخْبَرَا فَقَالَا إِنَّا قَدْ حَلَفْنَا لَهُمْ فَإِنْ شِئْتَ قَاتَلْنَا مَعَكَ فَقَالَ «نَفِي لَهُمْ بِعَهْدِهِمْ وَنَسْتَعِينُ اللَّهَ عَلَيْهِمْ»