In Matthew 25:31–46, Jesus describes the final judgment.
Jesus says that when the Son of Man comes in his glory, all nations will be gathered before him. He will separate the people "as a shepherd separates the sheep from the goats". The sheep are placed on his right hand and the goats on his left hand. the sheep
The sheep - the right hand - the righteous - Jesus invites them to inherit the eternal kingdom prepared for them. He notes that when they fed the hungry, gave drink to the thirsty, welcomed strangers, dressed the naked and visited the sick or imprisoned, they did it to him ("the least of these, my brother"). Their actions reflect true fruit of faith and grace.
The goats (left hand - the unrighteous) - they are sent to eternal fire because they failed to show mercy or care for the needy, which Jesus sees as someone who did not care for him.