Zlatan Ibrahimovic signs with LA Galaxy

Zlatan Ibrahimovic has signed a two-year contract with Major League Soccer to leave Manchester United and join the LA Galaxy, two people with knowledge of the deal told The Associated Press.

Ibrahimovic thanked Manchester United on Twitter.

"Great things also come to an end and it is time to move on after two fantastic seasons with Manchester United. Thank you to the club, the fans, the team, the coach, the staff and everybody who shared with me this part of my history. foreverred," he wrote .

The 36-year-old forward is Sweden’s career scoring leader with 62 goals in 116 international appearances and is the first player to make Champions League appearances for seven teams.

The player will travel to Los Angeles next week, with a debut pencilled in for March 31 against city rivals LAFC.

Ibrahimovic signed on a free transfer with the Red Decvils in 2016 and personally enjoyed a fine debut season. He scored 28 goals in 46 games before suffering a serious knee ligament injury in the Europa League against Anderlecht.

MLS has historically been a destination for top European players to wind down their careers. Ibrahimovic has proved this season in the Premier League that he still has what it takes to thrive in one of the world's toughest leagues.

The Galaxy deal ends nearly two years of discussions between MLS and Ibrahimovic's representatives to bring him to North America. Talks began in May 2016, before the Swede opted to join United, and ESPN reported in January that the Galaxy were inching closer to signing the striker.

Ibrahimovic has recently returned to full training with United, but he told Reuters last week that he did not want to rush his comeback, insisting he would not return until he is "ready to perform."

Despite ending his international career for Sweden in 2016, Ibrahimovic said earlier this month that he has not ruled out returning to play at the World Cup in Russia this summer.