I know you are glad to have your car back. I don't know how the laws work where you are but he didn't "let you have your car back" He had no choice, he didn't own it, you did. He could not have kept it even if he wanted to. You really don't have to thank him at all. And yes, it's true he was a victim of buying essentially stolen property.