NEW YORK (AP) — Jeremy Lin is heading back to the city where "Linsanity" was born.
Lin agreed to a three-year, $36 million contract Friday with the Brooklyn Nets, a person with knowledge of the details told The Associated Press.
Lin tweeted earlier that he was headed to Brooklyn, posting a photo of himself dribbling the ball in a Nets uniform in front of the team's logo and writing: "The journey continues ... thankful for the next chapter!! #Godisgood."
The person confirmed the details of the contract on condition of anonymity because the deal cannot be signed until July 7.
Lin's breakout in the NBA came in New York — with the Knicks — during the 2011-12 season. The undrafted point guard from Harvard came off the bench to spark the Knicks to a victory over the then-New Jersey Nets and scored at least 20 points nine times in a 10-game span as Linsanity briefly became the biggest story in basketball.
The NBA's first American-born player of Chinese or Taiwanese decent appeared on the cover of Sports Illustrated in consecutive weeks and carried New York into the playoff race before a knee injury ended his season.
He reunites with new Nets coach Kenny Atkinson, who was a Knicks assistant under Mike D'Antoni and later Mike Woodson in Lin's lone season in New York.
Lin left after that season for Houston and later played for the Los Angeles Lakers before having a solid season in Charlotte last year as the backup to Kemba Walker. He averaged 11.7 points in helping the Hornets reach the playoffs, where they lost to Miami in seven games in the first round.
The Nets had been in need of a point guard since buying out Deron Williams last summer. Jarrett Jack was the starter last season until tearing his ACL in January, and the Nets waived him Thursday to save themselves all but $500,000 of what would have been a $6.3 million contract for next season if Jack remained on the roster.