Here is Jesus teaching that if you want to enter life, (you have to) OBEY THE COMMANDMENTS" (Matthew 19:16-30). Is He a works salvationist as you call those who teach OBEDIENCE TO GOD as part of salvation?
No, Jesus is not a works-salvationists and just like Roman Catholics and other works-salvationists, you misinterpret the passage to support salvation by works. Jesus knows the hearts of all men and responds to each individual a little differently because He knows where their need is. He didn't respond to the woman at the well, or to Nicodemus or to the rich young ruler the exact same way, yet the consistent pattern in scripture is salvation by grace through faith, not works (Ephesians 2:8,9).
Jesus showed the rich young man how short he falls of keeping the first commandment (Exodus 20:3) which is the first of the two great commandments (Deuteronomy 6:5; Matthew 22:37). The rich young man confidently and (self righteously) declared that he has kept the commandments from his youth up and qualified for heaven under those terms. Yet Jesus knew the man's wealth had become his idolatrous god, which kept him from believing in Jesus.
The rich young man missed the point that Jesus was making (as did you) and failed to place his faith in Jesus for salvation, and continued instead to trust in his riches (vs. 21-23). The rich young man went away sad because he could not part from his great wealth, not even in exchange for eternal life.
If keeping the commandments is the basis by which we receive eternal life, then why isn't this remark the pattern for all discussions concerning eternal life? Paul would have said to the jailer who asked, "what must I do to be saved?" by replying in Acts 16:31 - keep the commandments, yet that's not what Paul said. Instead, Paul said -
"Believe on the Lord Jesus Christ and you will be saved." *We see this throughout scripture - (John 1:12; 3:15,16,18,36; 5:24; 6:29,40,47; 11:25,26; Acts 10:43; 13:39; Acts 15:7-9; Romans 1:16; 3:22-28; 4:5-6 etc..). What we don't see is salvation by works (Romans 4:4-6; Ephesians 2:8,9; Titus 3:5; 2 Timothy 1:9 etc..).
So Jesus is a works salvationist because He told His disciples to teach all the nations OBEDIENCE to all that He commanded them. (Matthew 28:18-20)
We have here a command of Jesus to go and make disciples of all nations, then baptize them and teach them to observe all things that Jesus has commanded them NOT as a means of becoming saved but BECAUSE they are already saved. Don't put the cart before the horse.
So Jesus is a works salvationist because He said that those who love him WILL OBEY HIS TEACHINGS.
Jesus is not a works-salvationists because the one who are obeying His teachings have already been saved through faith.
So Jesus is a works salvationist because HE OBEYED GOD and became the SOURCE OF ETERNAL SALVATION FOR ALL WHO OBEY HIM. (Hebrews 5;7-9)
So in Hebrews 5:9, who obeys Him? The saved or the lost? Hebrews 5:9 is yet another commonly used verse that I've heard many works salvationists use in an effort to try and support salvation by works (including Roman Catholics, Mormons and Campbellites). *Only believers have obeyed Him by choosing to believe the gospel (Romans 1:16)
in order to become saved, and only believers obey Him after they have been saved through faith by keeping (guarding, observing, watching over) His commandments and practicing righteousness and not sin (1 John 2:3; 3:9,10).
*In either sense, only believers obey Him.
Unbelievers have not obeyed Him by refusing to believe the gospel (Romans 10:16) and
without faith its impossible to please God (Hebrews 11:6), so unbelievers do not obey Him no matter how much "so called" obedience that they attempt to conjure up through the flesh in a vain effort to receive salvation by works.
*So in either sense, unbelievers do not obey Him.
And all those who follow His example of OBEDIENCE TO GOD are WORKS SALVATIONIST.
No, they are His disciples who are obedient to God BECAUSE they are saved and not in order to become saved by works.
If that's the case, where did the OSAS teachings or doctrines come from?
Scripture.
...He replied, “Isaiah was right when he prophesied about YOU HYPOCRITES; as it is written: “‘These people HONOR ME WITH THEIR LIPS, but their hearts are far from me. They worship me in vain; THEIR TEACHINGS ARE BUT RULES TAUGHT BY MEN.’ You have let go of the commands of God and are holding on to the traditions of men.” And he said to them: “YOU HAVE A FINE WAY OF SETTING ASIDE THE COMMANDMENTS OF GOD in order to observe your own traditions! For Moses said, ‘Honor your father and your mother,’ and, ‘Anyone who curses his father or mother must be put to death.’ But you say that if a man says to his father or mother: ‘Whatever help you might otherwise have received from me is Corban’ (that is, a gift devoted to God), then you no longer let him do anything for his father or mother. Thus YOU NULLIFY THE WORD OF GOD by your tradition that you have handed down. And YOU DO MANY THINGS LIKE THAT.” Mark 7:6-13
Oh the irony.