It wasnarrated from Ibn Mas'ud that the Prophet (ﷺ) said:
"Allahummainni a'udhu bika minash-Shaitanir-rajim, wa hamzihi wanafkhihi wamafthihi (O Allah, I seek refuge in You from the accursedSatan, fromhis madness, his pride, and his poetry)." (IT)
English reference (IT): Vol. 1, Book 5, Hadith 808 (IT)
Arabic reference (IT): Book 5, Hadith 857 (IT)