The Messenger of Allah ﷺ said, "Patience is at the first stroke of grief."
أخبرنا عمرو بن علي قال حدثنا محمد بن جعفر قال حدثنا شعبة عن ثابت قال سمعت
قال رسول الله ﷺ الصبر عند الصدمة الأولى
No references are available.
Bukhari transmitted it in Janaiz, Chapter on patience at the first shock, hadith no. 1302, and Muslim in Janaiz, Chapter on patience regarding calamity at the first shock, hadith no. 926, from the hadith of Muhammad bin Jafar Ghundar with this chain. It is also in al-Kubra, hadith no. 1996.