have (one) to thank
To have one to blame or acknowledge as the cause or source of something. I have two sick toddlers to thank for my lack of sleep last night. If this fix works, we'll have Nina to thank—it was entirely her idea.
have somebody to thank (for something)
used when you are saying who is responsible for something: I have my parents to thank for my success.