It is narrated from Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "I would not care what I did or what I relied upon if I were to hang an amulet, or drink theriac, or compose poetry of my own accord."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13728