Jason Kidd appears prepared to end his career where he started it -- with the Dallas Mavericks.

The 39-year-old is closing in on a multiyear deal, a source close to the situation said. The source said the deal is not completed, but barring any snags, Kidd will close out his career alongside Dirk Nowitzki.

Sources with knowledge of the deal specifics told ESPN.com's Marc Stein that Kidd's contract will be a three-year deal worth $9 million, taking him to age 42 if he plays it all the way out.

After a rough few days that saw prized free agent Deron Williams opt to re-sign with the Brooklyn Nets, Jason Terry agree to terms with the Boston Celtics and then another Mavs target, Steve Nash, stunningly get traded to the Los Angeles Lakers, the Mavs are finally nearing their first positive move of a so-far frustrating free-agent period by bringing back Kidd.