The Philadelphia 76ers have agreed to trade center Jahlil Okafor, guard Nik Stauskas and a future second-round pick to the Brooklyn Nets in exchange for forward Trevor Booker, two people with knowledge of the agreement confirmed to USA TODAY Sports. The people spoke under the condition of anonymity because the trade had not yet been announced publicly.

Okafor, 21, was drafted by Philadelphia with the No. 3 overall pick in 2015 after one season at Duke. He averaged 17.5 points and seven rebounds during his rookie season, but had since struggled to find a consistent spot in the rotation and had grown frustrated with his role. He has played in just two games this season for the Sixers, who are focused on building around former top-three picks Joel Embiid, Ben Simmons and Markelle Fultz.

ESPN and The Vertical first reported the trade agreement.

Booker, who was in his second season with the Nets, is averaging 10.1 points and 6.6 rebounds. He took to Twitter shortly after news broke.

It’s been real Brooklyn. Will always have nothing but love for you. Loved my time in New York!!!

"Trevor Booker has been a solid and competitive two-way contributor at every NBA stop," 76ers president of basketball operations Bryan Colangelo said in a statement. "Trevor's abilities should complement our style of play and his experience should add to our bench depth with playoff contention in mind. Jahlil and Nik are both quality young men with talent that should keep them productive in this league a long time. We hope they find more opportunity in Brooklyn this season and thank them for their contributions over the past few years."

Feb. 12: Philadelphia 76ers Joel Embiid and Robert Covington dump water on T.J. McConnell in reaction to McConnell recording a triple-double against the New York Knicks.
Bill Streicher, USA TODAY Sports

Feb. 7: LeBron James celebrates his game-winning basket in overtime in a 140-138 win over the Minnesota Timberwolves at Quicken Loans Arena. The victory ended the Cavaliers' eight-game losing streak in games broadcast on national TV.
David Richard, USA TODAY Sports

Feb. 6: The Orlando Magic's Jonathon Simmons hands onto the rim after he dunks against the Cleveland Cavaliers during the second half at Amway Center. The Magic won the game, 116-98.
Kim Klement, USA TODAY Sports

Feb. 5: Sacramento Kings mascot Slamson lifts up the Golden 1 Center mascot to recreate a scene from the movie "Dirty Dancing" during a timeout in the first quarter of the game between the Sacramento Kings and the Chicago Bulls at Golden 1 Center. The Kings won the game, 104-98.
Kelley L Cox, USA TODAY Sports

Feb. 2: The Milwaukee Bucks' Giannis Antetokounmpo makes the winning shot in the final seconds against the New York Knicks at the BMO Harris Bradley Center. The Bucks won the game, 92-90.
Benny Sieu, USA TODAY Sports

Jan. 30: The Houston Rockets' James Harden is greeted by his mother, Monja Wills, following Houston's 114-107 victory over the Orlando Magic. Harden finished the game with a franchise-record 60 points.
Erik Williams, USA TODAY Sports

Jan. 23: LeBron James celebrates after scoring his 30,000th career point in the Cleveland Cavaliers' game against the San Antonio Spurs at AT&T Center. The Spurs won the game, 114-102.
Soobum Im, USA TODAY Sports

Jan. 21: The Indiana Pacers' Darren Collison shoots the ball as the San Antonio Spurs' Danny Green defends during the second half at AT&T Center. The Pacers won the game, 94-86.
Soobum Im, USA TODAY Sports

Jan. 18: Rockets guard James Harden (13) shows he can play defense, rising up to block a shot attempt by Timberwolves guard Jimmy Butler (23) during the first half in Houston.
Troy Taormina, USA TODAY Sports

Jan. 10: Warriors forward Kevin Durant (35) hoists a shot over Clippers defender Tyrone Wallace (12) on his way to becoming the second-youngest player in league history to reach 20,000 career points.
Kyle Terada, USA TODAY Sports

Jan. 8: The Indiana Pacers' Lance Stephenson is fouled by the Milwaukee Bucks' Malcolm Brogdon in the second half at Bankers Life Fieldhouse. The Pacers won the game, 109-96.
Trevor Ruszkowski, USA TODAY Sports

Dec. 23: The Phoenix Suns mascot dressed as Santa Claus dunks a basketball over a Christmas tree during a time out against the Minnesota Timberwolves at Talking Stick Resort Arena.
Mark J. Rebilas, USA TODAY Sports

Dec. 13: Oklahoma City Thunder forward Paul George and Indiana Pacers guard Victor Oladipo, who were traded for each other in June, greet each other before George's return to Indiana.
Brian Spurlock, USA TODAY Sports

Dec. 3: The Miami Heat's Bam Adebayo is fouled by the Golden State Warriors' Draymond Green during the second half of the Warriors' 123-95 win at American Airlines Arena.
Steve Mitchell, USA TODAY Sports

Dec. 2: Dallas Mavericks forward Dirk Nowitzki (41) is introduced and runs past a Darth Vader and a Stormtrooper before the game against the LA Clippers at the American Airlines Center.
Jerome Miron, USA TODAY Sports

Nov. 13: LeBron James and New York Knicks center Enes Kanter are separated by New York Knicks shooting guard Courtney Lee during the first quarter at Madison Square Garden.
Brad Penner-USA TODAY Sports

Nov. 1: LeBron James reacts in the fourth quarter of
a 124-107 loss to the Indiana Pacers at Quicken Loans Arena. It was the fourth consecutive loss for the Cleveland Cavaliers.
David Richard, USA TODAY Sports