City crushed Watford 6-0 in the FA Cup final on Saturday to complete the unprecedented treble, after which Kompany said they were the best team in the world.
Kompany scored with a thunderous long-range strike to decide their penultimate league match of the season against Leicester City, a key moment in their retaining the Premier League title.
"It’s cliché to say it but it’s also so true: without my teammates I would have never been here today," he added.
"We fought many battles together. Side by side. In good times and in bad. So to all of you, from the 2008-2009 squad to today’s domestic Treble winners: I owe you guys!
"A special word also to (manager) Pep (Guardiola) and the backroom staff: you’ve been superb. You’ve followed me through so much hardship. You made me come back stronger every time. Thank you so much."