In the seventh year after the Hijrah the Prophet ﷺ marched north from Madinah to Khaybar. He reached it at night and, as was his custom, waited until morning before engaging (Sahih al-Bukhari 4197). Khaybar was taken, and its lands came under the authority of the Muslims.