Details of the agreement regarding a possible move for the 22-year-old were not disclosed in a statement posted on Hamburg's official website.
But Kompany's future at Hamburg has been called into question in recent days after he fell out with club bosses over his continued involvement for Belgium at the Olympic Games in Beijing.
Hamburg had ordered Kompany to return from the Games in time for their first Bundesliga game of the season last Friday despite the Red Devils' run to the final four in Beijing.
His appearance in the season-opening fixture against Bayern Munich now appears set to be his 39th and last for the club since joining from Anderlecht in 2006.
"We wish Vincent all the best for his future," said Hamburg's director of football Dietmar Beiersdorfer.
__________________
I NEVER fail, i'm just SUCCESSFUL in finding out what doesn't work Freedom is never voluntarily given by the oppressor; it must be demanded by the oppressed.