Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:15607ʿUbayd b. Ghannām > Abū Bakr b. Abū Shaybah > Ismāʿīl Ibn ʿUlayyah > Ayyūb > Abū Qilābah > Abū al-Muhallab > ʿImrān b. Ḥuṣayn

[Machine] The Messenger of Allah ﷺ redeemed two Muslim captives with a man from the polytheists of the Banu Uqayl tribe. The tribe of Uqayl was allies to the Thaqif tribe during the pre-Islamic era. And it is known that the Thaqif tribe had captured two Muslims, so the Muslims captured a man from the tribe of Uqayl in return and took a camel that had preceded in the pre-Islamic era. When the camel preceded during the pre-Islamic era, it was not prevented from a watering hole or from grazing. The man sat in a place and the Prophet ﷺ passed by him, so he said, "O Muhammad, what is the reason for my captivity and the precedence of the camel?" He said, "We have kept you as a captive in the place of your allies, the Thaqif tribe." And then he mentioned the hadith.  

الطبراني:١٥٦٠٧حَدَّثَنَا عُبَيْدُ بْنُ غَنَّامٍ ثنا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ ثنا إِسْمَاعِيلُ ابْنُ عُلَيَّةَ عَنْ أَيُّوبَ عَنْ أَبِي قِلَابَةَ عَنْ أَبِي الْمُهَلَّبِ عَنْ عِمْرَانَ بْنِ حُصَيْنٍ

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