The Scripture says that the sheep are those who FED the hungry, CLOTHED the naked, etc.
The Scripture says that the goats are those who DID NOT FEED the hungry, DID NOT CLOTHE the naked, etc.
But those who cling to the un-Scriptural doctrine of sola fide twist the Scripture, claiming it says that the sheep and goats are judged by whether they had faith in Christ.
There isn’t a single part of Jesus’ account of the Final Judgment that promotes or supports sola fide. The entire story is about good works, and teaches clearly that the Final Judgment will be based on good works.
See my post regarding John 6:37
There are a lot of "good people" in the world today who do these things. People run charities, bring food to sick people, visit people in jail, etc.
However, a lot of those people do not know who Jesus is. They do not believe in Him or have faith in Him and they could care less about Him.
Do those people, because they did these good things, yet do not have faith in Christ, inherit the Kingdom or are they cast into the fire?