Kompany set up Fabian Delph who started the move for the hosts.
Foden worked the ball to Raheem Sterling, who set up Leroy Sane on the edge of the penalty area.
The Germany international still had plenty of work to do, he skilfully worked the ball on to his stronger left foot and cannoned the ball home.
His effort went past Southampton goalkeeper Alex McCarthy's, despite the goalkeeper getting a hand on the effort.
Manchester City remain top of the Premier League after the performance.
November 4, 2018