Sayyiduna Jabir bin Abdullah (may Allah be pleased with him) narrates from Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him): "The Prophet (peace and blessings be upon him) cauterised him."
Imam Muslim (may Allah have mercy on him) narrated it in his Sahih through the chain of Bishr bin Khalid, Muhammad bin Ja'far and Shu'bah from Sayyiduna Jabir (may Allah be pleased with him), who said: "A man shot Sayyiduna Ubayy (may Allah be pleased with him) (with an arrow)," and so he counted it among the Musnad of Sayyiduna Jabir bin Abdullah (may Allah be pleased with him).
Sayyiduna Jabir (may Allah be pleased with him) narrates from Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) was asked about the mosque (whose foundation was laid on piety), and he (peace and blessings be upon him) said: "It is this mosque of mine."
This hadith is in the original copy of Abu Umar (may Allah have mercy on him) with the correction of Abu al-Abbas al-Fazari (may Allah have mercy on him), and Abu Umar (may Allah have mercy on him) said: "I saw Ibn Sa'id (may Allah have mercy on him), when he was in doubt about something [a gap in the text]" with this text; whereas the preserved narration with this chain is that the Prophet (peace and blessings be upon him) sent a physician to Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him), who cauterised him.