Sunan Ibn Majah, Book 6, Hadith 164 (Ibn Majah 1596)

It was narrated from Anas bin Malik that the Messenger of Allah (ﷺ) said:

"Patience should come with the first shock."