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)." (TH)
English reference (TH): Vol. 1, Book 5, Hadith 808 (TH)
Arabic reference (TH): Book 5, Hadith 857 (TH)