Abu Dharr reported,

The Messenger of Allah ﷺ said to me, "How will you fare when death strikes the people so severely that a single grave costs the price of a slave?"I replied, "Allah and His Messenger know best," or, "Whatever Allah and His Messenger choose."He said, "Hold fast to patience," or he said, "You must be patient."

Azami 6998

Sahih

عن أبي ذر قال

قال لي رسول الله ﷺ: كيف أنت إذا أصاب الناس موت، يكون البيت فيه بالوصيف؟ - يعني القبر- قلت: الله ورسوله أعلم، أو ما خار الله ورسوله قال: عليك بالصبر أو قال: تصبر

الأعظمي 6998صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Legal punishments
Chapter
Hadd for theft
Section
Cutting off the hand of the grave robber
Numbering
Jami al-Kamil 6998 (2nd edition)
Azami 6998