وَلِكُلٍّ دَرَجَـٰتٌ مِّمَّا عَمِلُوا۟ ۚ وَمَا رَبُّكَ بِغَـٰفِلٍ عَمَّا يَعْمَلُونَ Qur’an Al-An'am (6:132)Walikullin daraj a tun mimm a AAamiloo wam a rabbuka bigh a filin AAamm a yaAAmaloon a
Lit., "all shall have grades out of what they did", i.e., consciously - since God does not take people to task for any wrong they may have committed unless it was done in conscious contravention of a moral law already made clear to them by the prophets.
On good and evil there are infinite degrees, in our deeds and motives: so will there be degrees in our spiritual position. For everything is known to God, better than it is to ourselves.