In the parable of the sheep and the goats, Jesus divides people into two groups: the righteous and the unrighteous. Jesus defines the righteous as those who helped others in need, sheltered the poor, fed the hungry, clothed the naked and ministered to the sick. The unrighteous are the ones who were too concerned about themselves to do any of these. These unrighteous people are thrown out from God’s presence.
Taken from NIV Essentials of the Christian Faith