The Messenger of Allah ﷺ sent a physician to Ubayy bin Kaab, who cut a vein for him and then cauterized it.
بعث رسول الله ﷺ إلى أبي بن كعب طبيبا، فقطع منه عرقا، ثم كواه عليه.
Muslim narrated it in the Book of Greetings (2207) via Abu Muawiya (that is, Muhammad bin Khazim), from Amash, from Abu Sufyan, from Jabir, and he related it.Ubayy bin Kaab was struck on his median vein on the day of the Trench, so the Messenger of Allah ﷺ cauterized it, as Muslim narrated via Shubah, from Amash.