The Houston Rockets have traded guard Jeremy Lin and a future first-round pick to the Los Angeles Lakers, a league source told ESPN's Jeff Goodman.

The Lakers were amenable to this deal, according to sources, because Lin is only under contract for one more season, thus preserving their cap space next summer. They also covet draft picks, after trading away their first-round picks in 2015 and 2017 to Phoenix and Orlando as part of the Steve Nash and Dwight Howard trades, respectively.

The Rockets have made a maximum offer to center Chris Bosh of four years, $88 million, according to sources.

A source told ESPN.com on Friday that the Rockets expect Bosh to commit "soon" to joining Houston after Miami Heat teammate LeBron James told SI.com on Friday that he was leaving to return to the Cleveland Cavaliers.