Jeremy Lin tweets that he's heading to the Brooklyn Nets

(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.

___

AP Sports Writer Steve Reed in Charlotte, North Carolina, contributed to this report.

sorry to interrupt
your first 20 are free
Access to News 12 is free for Optimum, Comcast®, Time Warner® and Service ElectricSM customers.
Please enjoy 20 complimentary views of articles, photos, and videos during the next 30 days.
you have reached your 5 view limit
Access to News 12 is free for Optimum, Comcast®, Time Warner® and Service ElectricSM customers.
Please login, create an account or subscribe to continue enjoying News12.
Our sign-up page is undergoing maintenance and is not currently available. However, you will be given direct access to news12.com while we complete our upgrade.
When we are back up and running you will be prompted at that time to complete your sign in. Until then, enjoy the local news, weather, traffic and more that's "as local as local news gets."