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:18028

[Machine] Al-Shafi'i, may Allah have mercy on him, had an agreement with Abu Azza al-Jumahi that he would not fight him without a ransom. The Prophet ﷺ left him with his daughters and took an oath from him not to fight him. However, he deceived him and fought him on the day of Uhud. The Prophet ﷺ called for him not to be released, and no other disbeliever was captured except him. He said, "O Muhammad, spare me and allow me to take care of my daughters, and I will give you an oath not to fight you again." The Prophet ﷺ said, "Do not touch him, for he has deceived me twice in Makkah by saying that he had accepted Islam." Then he ordered him to be executed. Abu Sa'id bin Abi 'Amr narrated this to us, Abu al-'Abbas narrated it to us, and Al-Rabi' narrated it to us from Al-Shafi'i. We have also heard it from sources other than Al-Shafi'i in the book of Al-Qasam.  

البيهقي:١٨٠٢٨قَالَ

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