Jesus frequently talked about a time when everyone will be judged. At one time when he was talking to Jews who wanted to find some reason to put him to death, he talked of the coming judgment.
Jesus often described the actions of a person's character as their fruit. He indicated that good trees produce good fruit while bad trees produce bad fruit.
This is what happens to us without considering that our character and personality are illustrated by what we do. Our thoughts eventually cause our actions. Good thoughts produce helpful actions and uplifting words. Evil thoughts produce harmful actions and degrading words.
It is easy to think that nobody is looking when you cheat someone or steal something. When you get angry, it's easy to say something nasty about someone. In your anger you may even strike out at them and hurt them.
And it's easy to think that nobody really notices what you do or say. But, God does. The character we develop determines our actions. Though, we want to be seen as good people, if we have wicked thoughts, those thoughts will creep out in our words and deeds. Jesus indicated that even our careless words indicate who we really are.
The coming judgment was His final words about the time when he would return to judge the nations. He indicated that he will separate the people based on how they acted in life. Those who will inherit eternal life are like "sheep". Those who will go into eternal punishment are like "goats".
Watch out what your life actions; which of the two sides “sheep and goats” would you like to be judged on?