There are not found that returned to give glory to God, save this stranger.
Note 4 at Lu 17:18: Relatively few people who receive the goodness of the Lord return to give Him thanks for what He has done. That does not keep the Lord from doing what is right for people. According to their request, He healed all ten of these lepers, not just the one who was thankful. However, only one out of the ten was made "whole" (Lu 17:19).
The Lord desires that we prosper in spirit, soul, and body (1Th 5:23 and 3Jo 2). He wants us to be whole, not just healed. Part of the reason God meets our physical needs is to prove to us His willingness and ability to meet our emotional and spiritual needs (Mr 2:10-11). The Lord is concerned about our temporal needs (Mt 6:30), but He is even more concerned about our eternal needs. All of these lepers needed physical healing, and the Lord was moved with compassion and met that need. He also desired to meet their spiritual needs, but only one out of the ten came back for that.
Thankfulness to the Lord for who He is and what He has done is a very important part of the Christian life. One of the many benefits of thanksgiving and praise is that they keep us from being "self" oriented. Giving thanks is a totally unselfish action and is a key to relationship with the Father that makes us "whole" and not just "healed."