MINNEAPOLIS (AP) — Kevin Garnett is returning for season No. 21.

A person with direct knowledge of the discussions tells The Associated Press that Garnett has agreed to terms on a two-year contract to remain in Minnesota. The person spoke Tuesday on condition of anonymity because the deal has not been announced.

Garnett starred in Minnesota for the first 12 years of his career before being traded to Boston in 2007. He returned last February in a trade deadline deal with the Brooklyn Nets and turned 39 in May.

After an emotional homecoming, Garnett played in just five games the remainder of the season due to knee issues.

NBA contracts cannot be signed until Thursday, per league rules.