Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:36:51

And the Horn will be blown; and at once from the graves to their Lord they will hasten.  

And the Trumpet is blown — this is the Horn — at the second Blast for the Resurrection ˹to take place˺; between the two Blasts is an interval of forty years; and lo! they, those interred, will be scrambling out of their graves towards their Lord, emerging therefrom hurriedly.
القرآن:٣٦:٥١

وَنُفِخَ فِي الصُّورِ فَإِذَا هُمْ مِنَ الْأَجْدَاثِ إِلَىٰ رَبِّهِمْ يَنْسِلُونَ  

{ونفخ في الصور} هو قرن النفخة الثانية للبعث، وبين النفختين أربعون سنة {فإذا هم} أي المقبورين {من الأجداث} القبور {إلى ربهم ينسلون} يخرجون بسرعة.