[Machine] The man used to come to the Messenger of Allah ﷺ and greet him, then he would return to his people who were polytheists. If the Muslims made a mistake in a secret mission or in a battle, the man would set a slave free as an atonement. If the man had a contract with a group between themselves, he would pay the blood money to them and set free the slave who was taken as a captive. (Surah An-Nisa 92) The Prophet ﷺ said: "The man should fulfill his covenant and his people should fulfill theirs, and he should set free the captive slave who has been taken by his people."
فِي قَوْلِهِ تَعَالَى {فَإِنْ كَانَ مِنْ قَوْمٍ عَدُوٍّ لَكُمْ وَهُوَ مُؤْمِنٌ فَتَحْرِيرُ رَقَبَةٍ مُؤْمِنَةٍ} [النساء 92] قَالَ كَانَ الرَّجُلُ يَأْتِي رَسُولَ اللَّهِ ﷺ فَيُسْلِمُ ثُمَّ يَرْجِعُ إِلَى قَوْمِهِ فَيَكُونُ فِيهِمْ مُشْرِكُونَ فَيُصِيبُهُ الْمُسْلِمُونَ خَطَأً فِي سَرِيَّةٍ أَوْ غَزَاةٍ فَيُعْتِقُ الرَّجُلُ رَقَبَةً {وَإِنْ كَانَ مِنْ قَوْمٍ بَيْنَكُمْ وَبَيْنَهُمْ مِيثَاقٌ فِدْيَةٌ مُسَلَّمَةٌ إِلَى أَهْلِهِ وَتَحْرِيرُ رَقَبَةٍ مُؤْمِنَةٍ} [النساء 92] قَالَ يَكُونُ الرَّجُلُ مُعَاهَدًا وَقَوْمُهُ أَهْلُ عَهْدٍ فَيُسْلِمْ إِلَيْهِمْ دِيَتَهُ وَيَعْتِقُ الَّذِي أَصَابَهُ رَقَبَةً