Sunan Ibn Majah, Book 36, Hadith 29 (Ibn Majah 3957)

It was narrated from Abu Umamah that the Messenger of Allah (ﷺ) said:

“There will be tribulation in which a man will be a believer in the morning and a disbeliever by evening, except the one to whom Allah grants knowledge.”