When the rich man asks the Lord what he must do in order to be saved, He does not give him the “sola fide” answer: “You don’t have to do anything. You just need to have faith.”
No. The Lord tells him what he must do.
The Gospel is not legalistic, but that doesn’t mean that obedience is optional.