‘Abdallah b. ‘Umar told that he heard God’s messenger say:
“If I drink an antidote, or tie on an amulet, or compose poetry, I am the type who does not care what he does.”*
Abu Dawud transmitted it.
* Meaning that one who does any such thing is an abandoned character.