Ibn Abbas reported that Allah's Messenger (ﷺ) used to supplicate (with these words) and he (uttered these words) at the time of trouble; the rest of the hadith is the same except with this difference that insted of saying
" The Lord of heaven and the earth," he said:" The Lord of the heaven and that of the earth."