Hazrat Abdullah ibn Abbas Radi Allahu anhu reports that whenever the Beloved Prophet Sallal Laahu Ta'ala Alayhi Wa Aalihi Wa Sallam was in any discomfort or if he felt any unhappiness, he would read the following dua continuously:

There is none worthy of worship except Al’laah, The Fore-bearing, The All Wise. There is none worthy of worship except Al’laah, The Lord of the Exalted Throne. There is none worthy of worship except Al’laah, The Lord of the Skies and The Lord of the Earth and the Lord of the distinguished Throne.