Having bad dreams can confuse us and if you are seeing nightmares on a regular basis then this should be taken seriously as they will trouble you mentally.
Allah has power over everything and He knows the right solution to all our problems. This dua, mentioned here, is very powerful when it comes to getting rid of bad dreams. Be grateful to Allah and please remember me in your prayers that I will keep posting valuable stuff for you people. Stay blessed.