Language:
كتاب التوحيد
97  
Oneness, Uniqueness of Allah (Tawheed)
(23)
Chapter: “The angels and the Ruh ascend to Him…”
(23)
Sahih al-Bukhari 7431

Narrated Ibn `Abbas:

Allah's Messenger (ﷺ) used to say at the time of difficulty, "None has the right to be worshipped but Allah, the Majestic, the Most Forbearing. None has the right to be worshipped but Allah, the Lord of the Tremendous Throne. None has the right to be worshipped but Allah, the Lord of the Heavens and the Lord of the Honourable Throne. (See Hadith No. 357, Vol. 8)

حَدَّثَنَا عَبْدُ الأَعْلَى بْنُ حَمَّادٍ، حَدَّثَنَا يَزِيدُ بْنُ زُرَيْعٍ، حَدَّثَنَا سَعِيدٌ، عَنْ قَتَادَةَ، عَنْ أَبِي الْعَالِيَةِ، عَنِ ابْنِ عَبَّاسٍ، أَنَّ نَبِيَّ اللَّهِ صلى الله عليه وسلم كَانَ يَدْعُو بِهِنَّ عِنْدَ الْكَرْبِ ‏ "‏ لاَ إِلَهَ إِلاَّ اللَّهُ الْعَظِيمُ الْحَلِيمُ، لاَ إِلَهَ إِلاَّ اللَّهُ رَبُّ الْعَرْشِ الْعَظِيمِ، لاَ إِلَهَ إِلاَّ اللَّهُ رَبُّ السَّمَوَاتِ وَرَبُّ الْعَرْشِ الْكَرِيمِ ‏"‏‏.‏
Reference : Sahih al-Bukhari 7431
In-book reference : Book 97, Hadith 58
USC-MSA web (English) reference : Vol. 9, Book 93, Hadith 526
  (deprecated numbering scheme)