Is There Any D’ua For Protection From Nightmares?
Question

How can we cure nightmares?
Praise be to Allah.Bad dreams are from Satan
Dreams that disturb a person and keep him awake come from the Shaytan. In general, the dreams that people see are either good dreams which come from Allah, a reflection of things which a person is thinking about, or a third type, which are dreams that come from the Shaytan. 
Abu Hurayrah reported that the Prophet (peace and blessings of Allah be upon him) said: “Towards the end of time, hardly any dreams that the Muslim sees will not come true. The one whose dreams are the most truthful will be the one whose speech is the most honest. The dreams of the Muslim form one of the forty-five parts of Prophecy. Dreams are of three types: the good dream which is good news from Allah; dreams which cause distress, which come from the Shaytan; and dreams concerning matters which a person is thinking about…” (Narrated by Muslim, 2263) 
Du’a for Nightmares
The Prophet (peace and blessings of Allah be upon him) told us how to rid ourselves of the influence of Shaytan during sleep. This can be achieved by reciting verses from the Quran and du’as narrated from him before going to sleep .

Abu Hurayrah (may Allah be pleased with him) said: “The Messenger of Allah (peace and blessings of Allah be upon him) put me in charge of guarding the zakah of Ramadan. Someone came and started to scatter the food. I took hold of him and said, ‘I will take you to the Messenger of Allah (peace and blessings of Allah be upon him).’… He said, ‘When you go to bed, recite Ayat al-Kursi and you will be protected by Allah, and no shaytan (devil) will come near you until morning.’ The Prophet (peace and blessings of Allah be upon him) said, ‘He told you the truth even though he is a liar. That was a shaytan.’” (Narrated by al-Bukhari, 3101)
Abu Mas'ud al-Badri (may Allah be pleased with him) said: “The Messenger of Allah (peace and blessings of Allah be upon him) said: ‘The last two ayahs of Surah al-Baqarah – whoever recites them at night, they will be sufficient for him.’” (Narrated by al-Bukhari, 3786; Muslim,807).

Al-Nawawi said: “Concerning the phrase, ‘The last two ayahs of Surah al-Baqarah – whoever recites them at night, they will be sufficient for him’, it was said that it means, they will be sufficient for him instead of praying qiyam al-layl, or as protection from Shaytan, or as protection from vermin. It could mean all of these things.” (Sharh Muslim, 6/91, 92).

 ‘Aishah (may Allah be pleased with her) said: “When the Messenger of Allah (peace and blessings of Allah be upon him) went to his bed, he would blow into his hands and recite Qul Huwa Allahu Ahad (Surah 112) and the Mu'awwidhatayn (Surahs 113 and 114). Then he would wipe his hands over his face and his body, as far as they could reach.” ‘Aishah said: “When he fell ill, He would ask me to do that for him.” (Narrated by al-Bukhari, 5416; Muslim, 2192) 
Abu Hurayrah said: “The Messenger of Allah (peace and blessings of Allah be upon him) used to tell us, when any one of us wanted to sleep, to lie on his right side, then say ‘Allahumma Rabb al-samawati wa Rabb al-ard wa Rabb al-‘Arsh il-‘Azim, Rabbana wa Rabba kulli shay-in, faliq al-habb wa’l-nawa wa munazzil al-Tawrati wa’l-Injeeli wa’l-Furqan, a’udhu bika min sharri kulli shay-in anta akhidhun bi nasiyatihi. Allahumma anta al-awwal fa laysa qablaka shay-un, wa anta al-akhir fa laysa ba’daka shay-un. Wa anta al-zahir fa laysa fawqaka shay-un wa anta al-batin fa laysa dunaka shay-un. Iqdi ‘anna al-dayna wa aghnina min al-faqr (O Allah, Lord of the heavens and the earth, and Lord of the Mighty Throne, our Lord and Lord of all things, Splitter of the seed and the date stone, Revealer of the Tawrat, the Injil and the Furqan, I seek refuge in You from the evil of all things that You will seize by the forelock [i.e., have full control over them]. O Allah, You are the First and there is nothing before You; You are the Last and there is nothing after You. You are the Manifest (al-Zahir) and there is nothing above You; You are the Hidden (al-Batin) and there is nothing beyond You. Settle our debt and spare us from poverty).’” (Narrated by Muslim, 2713) 
Abu Hurayrah (may Allah be pleased with him) said: “Abu Bakr said: ‘O Messenger of Allah, teach me something that I can say in the morning and in the evening.’ He said: ‘Say, Allahumma ‘Alim al-ghaybi wa’l-shahadah, Fatir al-samawati wa’l-ard, Rabba kulli shay-in wa malikahu, ashhadu an la ilaha illa anta. A'oodhu bika min sharri nafsi wa min sharr il-shaitan wa shirkih (O Allah, Knower of the seen and the unseen, Creator of the heavens and the earth, Lord and Sovereign of all things, I bear witness that there is no god except You. I seek refuge in You from the evil of my own self and from the evil and shirk of the Shaytan). Say this in the morning and in the evening, and when you go to bed.’” (Narrated by al-Tirmidhi, 3392; Abu Dawud, 5067).

What to do when you have a bad dream
The Prophet (peace and blessings of Allah be upon him) also taught us what to do when someone sees something unpleasant in a dream and wakes up as a result. That is: to spit dryly to the left, to seek refuge with Allah from the Shaytan, to change the side on which one was sleeping, and to pray if one wishes.

Abu Qatadah said: “The Prophet (peace and blessings of Allah be upon him) said: ‘Good dreams come from Allah and bad dreams come from the Shaytan. If any one of you sees a bad dream which makes him afraid, let him spit dryly to his left and seek refuge with Allah from its evil, then it will not harm him.” (Narrated by al-Bukhari, 3118; Muslim, 2261).
Jabir reported that the Messenger of Allah (peace and blessings of Allah be upon him) said: “If any one of you sees a dream that he dislikes, let him spit dryly to his left three time, and seek refuge with Allah from the Shaytan three times, and change the side on which he was sleeping.” (narrated by Muslim, 2262).
Abu Hurayrah said: “The Prophet (peace and blessings of Allah be upon him) said: ‘If any one of you sees something that he dislikes (in a dream), let him get up and pray, and not tell people about it.’” (narrated by Muslim, 2263)

 If the Muslim follows this advice given by the Prophet (peace and blessings of Allah be upon him), before he goes to bed, it is hoped that no shaytan will come anywhere near him, and if he follows this advice when he wakes up from a bad dream, it will take away all anxiety and distress from him.
 And Allah knows best.