Hadithcore
Al-Adab Al-Mufrad, 709
da’if· Al-Albani

Ibn 'Abbas said, "Whoever has a worry, sorrow or grief or fears a ruler, should use this supplication and he will be answered. It is:

'I ask You by (the words) "There is no god but You, the Lord of the seven heavens and the Lord of the Immense Throne" and I ask You by (the words) "There is no god but You, the Lord of the seven heavens and the Lord of the Immense Throne" and I ask You by (the words) "There is no god but You, the Lord of the seven heavens and the seven earths and what is in them. You have power over all things.'" Then he should ask for what he needs."

حَدَّثَنَا مُوسَى، قَالَ‏:‏ حَدَّثَنَا سُكَيْنُ بْنُ عَبْدِ الْعَزِيزِ بْنِ قَيْسٍ، أَخْبَرَنِي أَبِي، أَنَّ ابْنَ عَبَّاسٍ حَدَّثَهُ قَالَ‏:‏ مَنْ نَزَلَ بِهِ هَمٌّ أَوْ غَمٌّ أَوْ كَرْبٌ أَوْ خَافَ مِنْ سُلْطَانٍ، فَدَعَا بِهَؤُلاَءِ اسْتُجِيبَ لَهُ‏:‏ أَسْأَلُكَ بِلاَ إِلَهَ إِلاَّ أَنْتَ، رَبُّ السَّمَاوَاتِ السَّبْعِ، وَرَبُّ الْعَرْشِ الْعَظِيمِ، وَأَسْأَلُكَ بِلاَ إِلَهَ إِلاَّ أَنْتَ، رَبُّ السَّمَاوَاتِ السَّبْعِ، وَرَبُّ الْعَرْشِ الْكَرِيمِ، وَأَسْأَلُكَ بِلاَ إِلَهَ إِلاَّ أَنْتَ رَبُّ السَّمَاوَاتِ السَّبْعِ وَالأَرَضِينَ السَّبْعِ وَمَا فِيهِنَّ، إِنَّكَ عَلَى كُلِّ شَيْءٍ قَدِيرٌ، ثُمَّ سَلِ اللَّهَ حَاجَتَكَ‏.‏

References2 variants
In-Book Reference
Book 31, Hadith 106
English Reference
Book 31, Hadith 709