The Messenger of Allah ﷺ forbade the use of foul remedies.
قال لنا حدثنا هارون بن عبد الله حدثنا محمد بن بشر حدثنا يونس بن أبي إسحق عن مجاهد
نهى رسول الله ﷺ عن الدواء الخبيث
No references are available.
[Its chain is hasan] Tirmidhi narrated it in the Book of Medicine, chapter on what has been said about one who kills himself with poison or otherwise, no. 2045, and Ibn Majah, no. 3459, from the hadith of Yunus bin Abu Ishaq through this same route. Hakim graded it sahih according to the criteria of Bukhari and Muslim, 4/410, and Dhahabi agreed with him.