Ibn Shihab said “It has reached me that the Apostle of Allaah(ﷺ) conquered Khaibar by force. Its inhabitants who came down (from their fortress) for expulsion came down after fighting.”
Sunan Abi Dawud Book 20, Hadith 91