David Silva scored the only goal of the game in the win over Arsenal at the Etihad Stadium on Sunday.
Kompany told Sky Sports: “It was massive for us, we didn’t underestimate the importance of this game and we’re happy with the result and to keep a clean sheet.
“We’ve been going for a lot of goals and could have scored many, but we didn’t finish the chances we had today, although individually we won most of our challenges.”
Goalkeeper Joe Hart added: “We put pressure on ourselves. Manchester United are brilliant, but we knew we had a job to do this afternoon and that if we won we’re back where we want to be.”