Hadithcore
Riyad as-Salihin, 1821

Abu Hurairah (May Allah be pleased with him) reported:

The Messenger of Allah (ﷺ) said, "By Him in Whose Hand my soul is, the world will not come to an end until a man passes by a grave and will lie over it saying, 'Would that I were in this grave (i.e., dead)!' Not he will say so because of religious reasons but because of widespread mischief and severe trials of this world." <b>[Al-Bukhari and Muslim]</b>.

وعنه رضي الله عنه قال‏:‏ قال رسول الله صلى الله عليه وسلم ‏:‏ ‏

‏ والذي نفسي بيده لا تذهب الدنيا حتى يمر الرجل بالقبر، فيتمرغ عليه، ويقول‏:‏ ياليتني مكان صاحب هذا القبر، وليس به الدين، ما به إلا البلاء‏

‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Book 18, Hadith 14
Sharh · explanationclick to expand
<b>Guidance from the Hadith:</b><br> 1) People would wish to die due to the severity of trials and afflictions at the end of time.<br> 2) Informing us of what will happen at the end of time does not denote approval of it, nor does this mean that it is permissible to wish to die.<br> <br> <b>Benefit:</b><br> If trials become severe and life gets harder and harder for the believers and they love to meet their Lord, they should say as the Prophet (may Allah’s peace and blessings be upon him) taught us: “Allāhumma ahyini mā ‘alimta al-hayāta khayran li wa tawaffani mā ‘alimta al-wafāta khayran li (O Allah, keep me alive as long as You know that life is better for me, and cause me to die when You know that death is better for me).” [Narrated by Al-Bukhāri]
Related hadiths1
Compare isnād across 1 related chains →