وَلِكُلٍّ دَرَجَـٰتٌ مِّمَّا عَمِلُوا۟ ۚ وَمَا رَبُّكَ بِغَـٰفِلٍ عَمَّا يَعْمَلُونَ Qur’an Al-An'am (6:132)Walikullin darajatun mimma AAamiloo wama rabbuka bighafilin AAamma yaAAmaloona
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.