The Sacramento Kings have agreed to trade guard Ramon Sessions to the Washington Wizards for Andre Miller, a person with knowledge of the deal said Thursday.

The person spoke to The Associated Press on condition of anonymity because the teams have not announced the move, which comes just before Thursday's 3 p.m. EST trade deadline. Yahoo Sports first reported the deal.

The trade gives each team and player exactly what they've wanted.

Miller will be reunited with new Kings coach George Karl. The two had a close relationship in Denver, where Miller enjoyed some of his best seasons.

The Kings (18-34) will lean on Miller to provide veteran leadership on a team that has sorely lacked it.

Miller, who turns 39 in March, is averaging 3.6 points and 2.8 assists in 12.4 minutes. The guard played for Karl from 2003-07 and 2011-13 with the Nuggets.

The Wizards receive a viable, veteran backup they hope can rediscover his past form for the playoff push.

The 28-year-old Sessions is averaging 5.4 points and 2.7 assists in 17.8 minutes per game. He averaged 12.3 points and 4.1 assists in 26.7 minutes with Charlotte and Milwaukee last season.

Washington (33-21) is counting on Sessions to backup All-Star point guard John Wall and be a stronger, quicker defender than Miller at this stage of their careers.

Both teams return from the All-Star break Friday night. Washington hosts Cleveland, and Sacramento is home against Boston for Karl's debut as the franchise's coach.

The Kings hired Karl over the All-Star break to replace Tyrone Corbin, who took over after Michael Malone was fired 24 games into the season.