That's not what Jesus said. Faith without works is dead. The parable of the Good Samaritan basically says the same thing. James 2: 14-17
"14. What does it profit, my brethren, if someone says he has faith but does not have works? Can faith save him? 15. If a brother or sister is naked and destitute of daily food, 16. and one of you says to them, “Depart in peace, be warmed and filled,” but you do not give them the things which are needed for the body, what does it profit? 17. Thus also faith by itself, if it does not have works, is dead."