Sahih Bukhari Volume 008, Book 075, Hadith Number 356.

Narated By Ibn Abbas : The Prophet used to invoke Allah at the time of distress, saying, "La ilaha illal-lahu al-'Azim, al-Halim, La ilaha illal-lahu Rabbu-s-samawati wal-ard wa Rabbu-l-arsh il-azim."