Jason Kidd has agreed to sign with the Knicks on a three-year, $9 million deal, according to sources.

Kidd will presumably backup Jeremy Lin if he is ultimately retained as expected.

The Mavericks were confident they were moving toward a deal with Kidd.