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

And Allah created the heavens and earth in truth and so that every soul may be recompensed for what it has earned, and they will not be wronged.  

And God created the heavens and, He created, the earth with the truth (bi’l-haqqi is semantically connected to khalaqa, ‘He created’), so that He may indicate His power and His Oneness, and so that every soul may be requited for what it has earned, in the way of acts of disobedience or obedience, and therefore the disbeliever cannot be equal to the believer, and they will not be wronged.
القرآن:٤٥:٢٢

وَخَلَقَ اللَّهُ السَّمَاوَاتِ وَالْأَرْضَ بِالْحَقِّ وَلِتُجْزَىٰ كُلُّ نَفْسٍ بِمَا كَسَبَتْ وَهُمْ لَا يُظْلَمُونَ  

{وخلق الله السماوات} خلق {والأرض بالحق} متعلق بخلق ليدل على قدرته ووحدانيته {ولتجزى كل نفس بما كسبت} من المعاصي والطاعات فلا يساوي الكافر المؤمن {وهم لا يظلمون}.