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:30:8

Do they not contemplate within themselves? Allah has not created the heavens and the earth and what is between them except in truth and for a specified term. And indeed, many of the people, in ˹the matter of˺ the meeting with their Lord, are disbelievers.  

Have they not contemplated themselves?, so that they might emerge from their oblivion. God did not create the heavens and the earth, and what is between them, except with the truth and an appointed term, for that ˹creation˺, at the conclusion of which this ˹creation˺ will perish, and after which will be the Resurrection. But indeed many people, that is to say, ˹such as˺ the Meccan disbelievers, disbelieve in the encounter with their Lord, that is, they do not believe in resurrection after death.
القرآن:٣٠:٨

أَوَلَمْ يَتَفَكَّرُوا فِي أَنْفُسِهِمْ ۗ مَا خَلَقَ اللَّهُ السَّمَاوَاتِ وَالْأَرْضَ وَمَا بَيْنَهُمَا إِلَّا بِالْحَقِّ وَأَجَلٍ مُسَمًّى ۗ وَإِنَّ كَثِيرًا مِنَ النَّاسِ بِلِقَاءِ رَبِّهِمْ لَكَافِرُونَ  

{أَو لم يتفكروا في أنفسهم} ليرجعوا عن غفلتهم {ما خلق الله السماوات والأرض وما بينهما إلا بالحق وأجلٍ مسمى} لذلك تفنى عند انتهائه وبعد البعث {وإن كثيرا من الناس} أي: كفار مكة {بلقاء ربهم لكافرون} أي لا يؤمنون بالبعث بعد الموت.

See similar narrations below:

Collected by Qurʾān
quran:46:3

We did not create the heavens and earth and what is between them except in truth and ˹for˺ a specified term. But those who disbelieve, from that of which they are warned, are turning away.  

We have not created the heavens and the earth and all that is between them except, as a creation, in truth, so that it may be an indication of Our power and Our Oneness, and for an appointed term, until ˹the point of˺ their annihilation on the Day of Resurrection. Yet those who disbelieve are disregardful of what they are warned, ˹of what˺ they are threatened with in the way of ˹impending˺ chastisement.
القرآن:٤٦:٣

مَا خَلَقْنَا السَّمَاوَاتِ وَالْأَرْضَ وَمَا بَيْنَهُمَا إِلَّا بِالْحَقِّ وَأَجَلٍ مُسَمًّى ۚ وَالَّذِينَ كَفَرُوا عَمَّا أُنْذِرُوا مُعْرِضُونَ  

{ما خلقنا السماوات والأرض وما بينهما إلا} خلقا {بالحق} ليدل على قدرتنا ووحدانيتنا {وأجل مسمى} إلى فنائهما يوم القيامة {والذين كفروا عما أنذروا} خوفوا به من العذاب {معرضون}.