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.
bayhaqi:18226Baʿḍ Aṣḥābinā > Thawr b. Yazīd > Ḥakīm b. ʿUmayr > ʿUmar Katab > ʿUmayr b. Saʿd al-Anṣārī > ʿUmmālih > Lā

[Machine] That they should not impose a punishment on any of the Muslims in enemy territory until they leave for the territory of reconciliation. Al-Shafi'i said: It has been narrated from Umar ibn al-Khattab, and this is disapproved, as he criticized the use of an unconfirmed hadith and said, "Tell us the name of the sheikh." He also said, "Makhul narrated from Zaid ibn Thabit, but Makhul did not see Zaid ibn Thabit." Al-Shafi'i said: His saying "Accompanying the polytheists" means that if one follows them, then it is worse for him. And whoever abandons the punishment out of fear that the limited punishment will enter the land of the polytheists, then he should leave it on the coasts of the Muslims along with their weapons, which are connected to the land of the enemy.  

البيهقي:١٨٢٢٦قَالَ وَحَدَّثَنَا بَعْضُ أَصْحَابِنَا عَنْ ثَوْرِ بْنِ يَزِيدَ عَنْ حَكِيمِ بْنِ عُمَيْرٍ أَنَّ عُمَرَ ؓ كَتَبَ إِلَى عُمَيْرِ بْنِ سَعْدٍ الْأَنْصَارِيِّ وَإِلَى عُمَّالِهِ

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