Hadithcore
Musnad Ahmad 2097
graded

It was narrated that Ibn 'Abbas (رضي الله عنه) said: A man came to the Prophet (ﷺ) and said:

O Messenger of Allah, things cross my mind, that I would rather fall from heaven than speak of them. The Prophet (ﷺ) said: “Allahu Akbar, Allahu Akbar, Allahu Akbar, praise be to Allah Who has reduced his (the Shaitan's) plots to whispers.”

References1 variant
Arabic/English book
Book 25, Hadith 2097