By SCHUYLER DIXON
AP Sports Writer
DALLAS (AP) - J.J. Barea is returning to Dallas after considering a move to Miami in free agency.
A person with knowledge of the deal tells The Associated Press that Barea has agreed to terms with the Mavericks. The person spoke on condition of anonymity because players can't sign contracts until Thursday.
The deal is reportedly for two years and $5.6 million. Barea told a newspaper in Puerto Rico that he was rejoining Dallas.
The Mavericks brought back Barea early last season when Minnesota bought out the remainder of the four-year deal he signed after playing a key role in the Mavericks' run to the NBA championship in 2011.
Barea was linked to Miami early in free agency, but that was before the Mavs reached a deal with center DeAndre Jordan.
Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.