BAYHAQI 18857:
from Ibn ʿUmar —
[Machine] The Jewish tribes of Nadir and Quraizah fought against the Messenger of Allah ﷺ, so the Messenger of Allah ﷺ expelled the tribe of Nadir and made a peace treaty with Quraizah. He also granted them protection until Quraizah later fought against him, so he killed their men and divided their women, wealth, and children among the Muslims, except for some who joined the Messenger of Allah ﷺ, so he granted them safety and they embraced Islam. This hadith is mentioned in Sahih, as previously mentioned. Al-Shafi'i, may Allah have mercy on him, said: Similarly, if a man from them violates the treaty and fights, then it is permissible for the Imam to fight against his group. This was supported by the incident of Khuzayah, who were in a pact with the Prophet ﷺ. Three men from Quraysh were witnesses to their fighting, so the Prophet ﷺ attacked Quraysh in the year of the Conquest, due to the treachery of these three individuals, and he left the rest under the protection of Khuzayah, along with those who fought with them (Khuzayah).
البيهقي ١٨٨٥٧:
عن ابن عمر —
أَنَّ يَهُودَ النَّضِيرِ وَقُرَيْظَةَ حَارَبُوا رَسُولَ اللهِ ﷺ فَأَجْلَى رَسُولُ اللهِ ﷺ بَنِي النَّضِيرِ وَأَقَرَّ قُرَيْظَةَ وَمَنَّ عَلَيْهِمْ حَتَّى حَارَبَتْ قُرَيْظَةُ بَعْدَ ذَلِكَ فَقَتَلَ رِجَالَهُمْ وَقَسَمَ نِسَاءَهُمْ وَأَمْوَالَهُمْ وَأَوْلَادَهُمْ بَيْنَ الْمُسْلِمِينَ إِلَّا بَعْضَهُمْ لَحِقُوا بِرَسُولِ اللهِ ﷺ فَأَمَّنَهُمْ وَأَسْلَمُوا أَخْرَجَاهُ فِي الصَّحِيحِ كَمَا مَضَى 18858 قَالَ الشَّافِعِيُّ رَحِمَهُ اللهُ وَكَذَلِكَ إِنْ نَقَضَ رَجُلٌ مِنْهُمْ فَقَاتَلَ كَانَ لِلْإِمَامِ قِتَالُ جَمَاعَتِهِمْ قَدْ أَعَانَ عَلَى خُزَاعَةَ وَهُمْ فِي عَقْدِ النَّبِيِّ ﷺ ثَلَاثَةُ نَفَرٍ مِنْ قُرَيْشٍ فَشَهِدُوا قِتَالَهُمْ فَغَزَا النَّبِيُّ ﷺ قُرَيْشًا عَامَ الْفَتْحِ بِغَدْرِ النَّفَرِ الثَّلَاثَةِ وَتَرْكِ الْبَاقِينَ مَعُونَةَ خُزَاعَةَ وَإِيوَائِهِمْ مَنْ قَاتَلَ خُزَاعَةَ
hadithunlocked.com