The final judgment of individuals and their fate in the afterlife is ultimately in the hands of Allah (God). Muslims believe that their deeds, faith, and the mercy of Allah will determine their ultimate destination in the afterlife.
According to Islamic teachings, those who sincerely believe in the oneness of Allah, follow His commandments, and strive to live a righteous life are promised paradise. On the other hand, those who engage in grave sins, reject the oneness of God, or die in a state of disbelief may face the possibility of punishment in hell. They will be punished in hell for a period of time before being forgiven and entering paradise.
However, it's crucial to emphasize the concept of Allah's mercy in Islam. Muslims believe that Allah is compassionate and forgiving, and sincere repentance can lead to His forgiveness. Ultimately, only Allah knows the true nature of individuals' hearts and intentions, and He is considered the most just and merciful judge.