Sayyiduna Imran bin Husayn (may Allah be pleased with him) said: The Messenger of Allah (peace and blessings be upon him) forbade cauterization, but I had myself cauterized, and I neither succeeded nor prospered.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 15421