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:80:22

Then when He wills, He will resurrect him.  

then, when He wills, He will raise him, for the Resurrection.
القرآن:٨٠:٢٢

ثُمَّ إِذَا شَاءَ أَنْشَرَهُ  

{ثم إذا شاء أنشره} للبعث.