MIAMI — A person with knowledge of the deal says Miami wing Josh Richardson has agreed to a four-year extension potentially worth $42 million to remain with the Heat.

The terms were finalized Wednesday, said the person who spoke to The Associated Press on condition of anonymity because the deal had not yet been announced publicly.

The fourth year of the deal will be at Richardson's option.

Richardson is entering his third season with the Heat. He averaged 10.2 points last season, appearing in 53 games and making 34 starts. He shot 46 per cent from 3-point range as a rookie, then 33 per cent from beyond the arc last year.

The Heat begin training camp Sept. 26.

ESPN first reported Richardson's agreement with Miami.