رَّبِّ أَعُوذُ بِكَ مِنْ هَمَزَاتِ الشَّيَاطِينِ
وَأَعُوذُ بِكَ رَبِّ أَن يَحْضُرُونِ
Rabbi a’uudhu bika min hamazaatish-shayaatiin(i). Wa a’uudhu bika Rabbi an yahduruun. (23:97-98)
My Lord, I seek refuge with You from the promptings of the shaytaans and I seek refuge with You my Lord from that they come to me.
Ameen
This du’aa is often invoked for protection from the mischief of Shaytaan (Satan). It is also highly recommended for guarding against losing one’s temper and giving in to fits. Additionally, it is very effective against other assaults of the devils. A variant of this du’aa is reported for protection against nightmares. That du’aa is:
I seek refuge with Allah’s Perfect Words from Allah’s wrath, from the evils of His slaves, and from the promptings of the shaytaans and from that they come to me.
Sayyidnaa ‘Abdullaah ibn ‘Amr (r.a.) used to teach this to his older children. And for younger children he used to write it as an amulet and let them wear it around their necks.
(Source: Khalid Baig’s commentary to du’aa #25 in the Accepted Whispers: Munajat-e-Maqbul)