Agent Joel Segal tells The Associated Press that 27-year-old wide receiver Percy Harvin is retiring after seven NFL seasons.

Harvin played five games for the Buffalo Bills last season before being placed on injured reserve with lingering hip and knee injuries.

A first-round pick out of Florida in 2009, Harvin spent his first four seasons in Minnesota, where he scored 29 of his 32 career touchdowns. He was traded to the Seattle Seahawks in 2013, but only played in five regular season games before being traded to the New York Jets the following season.

Harvin's retirement decision was first reported by Pro Football Talk.

Harvin's injuries in Buffalo voided the last two years of his contract, making him a free agent.