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