عَنْ عَبْدِ اللَّهِ بْنِ عَمْرِو الْعَاصِ رَضِيَ اللَّهُ عَنْهُ قَالَ سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ يَقُولُ مَا أُبَالِي مَا أَتَيْتُ وَمَا رَكِبْتُ إِذَا أَنَا شَرِبْتُ تِرْيَاقًا وَتَعَلَّقْتُ تَمِيمَةً أَوْ قُلْتُ الشِّعْرَ مِنْ قِبَلِ نَفْسِي
It is narrated from Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with them both) that the Noble Prophet (peace and blessings be upon him and his family) said: When I drink antidote, or hang an amulet, or compose poetry from myself, then I will not care what I do or what (sin) I commit.
Brief Explanation
Benefits: ... Tiryāq is a compound and medicine that is used to neutralize the effects of poison. It has various types; in some types, snake meat and wine, etc., are also used, and in some types, only permissible things are used.
It is established from the ahadith of this chapter that, during times of battle, it is permissible to recite poetry that contains wisdom and prudence.