Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) said: When Banu Qurayzah said that they would accept whatever judgement Sayyiduna Sa'd (may Allah be pleased with him) gave, the Messenger of Allah (peace and blessings be upon him) sent for him, and he lived nearby. He came riding a donkey, and the Messenger of Allah (peace and blessings be upon him) said: "Stand up to receive your chief." He came and sat beside the Messenger of Allah (peace and blessings be upon him). The Messenger of Allah (peace and blessings be upon him) said: "These people have agreed to your judgement." He said: My judgement concerning them is that their fighting men be killed and their children be taken captive. He (peace and blessings be upon him) said: "You have judged concerning them with the very judgement of Allah Almighty."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحجر / 11314