Muhammad ibn Surqah reported: A man said to ‘Ata, may Allah be pleased with him, “A man was captured by the Daylamites and they said: We will send you back if you give us a covenant and a pledge that you will return with some wealth for us. If he does not go back to them himself, and he is not found, what do you order him to do?” ‘Ata said, “He should go back to them.” The man said, “But they are people of idolatry!” ‘Ata said, “He should fulfill the covenant.” The man said, “But they are people of idolatry!” ‘Ata said, “He should fulfill their covenant,” then he recited the verse, “Verily, the covenant will be questioned.” (17:34)

Source: Muṣannaf ‘Abd al-Razzāq 9714

عَنْ مُحَمَّدِ بْنِ سُوقَةَ قَالَ سَمِعْتُ رَجُلًا قَالَ عَطَاءٌ قَالَ رَجُلٌ أَسَرَهُ الدَّيْلَمُ فَقَالُوا نُرْسِلُكَ وَتُعْطِينَا عَهْدًا وَمِيثَاقًا عَلَى أَنْ تَبْعَثَ إِلَيْنَا كَذَا وَكَذَا فَإِنْ لَمْ يَفْعَلْ أَتَاهُمْ بِنَفْسِهِ وَإِنَّهُ لَا يَجِدُ فَكَيْفَ تَأَمُرُهُ قَالَ يَذْهَبُ إِلَيْهِمْ قَالَ إِنَّهُمْ أَهْلُ شِرْكٍ قَالَ يَفِي بِالْعَهْدِ قَالَ إِنَّهُمْ أَهْلُ شِرْكٍ قَالَ يَفِي بِالْعَهْدِ لَهُمْ إِنَّ الْعَهْدَ كَانَ مَسْئُولًا

9714 المصنف كتاب الجهاد باب جهاد الكبير لا هجرة بعد الفتح والوفاء بالعهد