The 27-year-old had not played for two months due to a thigh injury, but made his comeback during last night's 3-2 win over West Bromwich Albion.
"The most important thing for me was not to try to be a hero. To think that is the biggest mistake you can make," Sky Sports quotes Kompany as saying.
"Those kind of games are ones where you can make a difference on your own, but we needed a team performance.
"I just tried to slot into the team, to show I could help, and it helps with the team we have."
Manchester City are currently third in the Premier League table.