It depends on your relationship with him/her. Probably say something like, "Thank you for being an inspiration", or "Thanks for being so patient". Anything you think you want to say.
They motivate us to do better.Example Mulan she thought us that we don't need to be a man to fight battles as long as you believe on what you fight for you will win your battles