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

And in the heaven is your provision and whatever you are promised.  

And in the heaven is your provision, that is, the rain from which results the vegetation that is ˹your˺ provision, and ˹there is also˺ what you are promised, in the way of ˹the ultimate˺ return, reward and punishment, in other words, all of this is foreordained in the heaven.
القرآن:٥١:٢٢

وَفِي السَّمَاءِ رِزْقُكُمْ وَمَا تُوعَدُونَ  

{وفي السماء رزقكم} أي المطر المسبب عنه النبات الذي هو رزق {وما توعدون} من المآب والثواب والعقاب أي مكتوب ذلك في السماء.