Qatadah said “When the Apostle of Allaah(ﷺ) participated in battle there was for him a special portion which he took from where he desired. Safiyyah was from that portion. But when he did not participate himself in his battle, a portion was taken out for him, but he had no choice.”
Sunan Abi Dawud Book 20, Hadith 66