James Harris, the seam-bowling allrounder, will leave Middlesex at the end of the season to return to his boyhood club Glamorgan on a three-year deal.

Harris, 31, is a product of Glamorgan's youth system and made his first-class debut for the club as a 16-year-old back in 2007. He was long considered to be a future England international, having been on several Lions tours early in his career, and several counties were interested in signing him when he left the club in 2012.

He eventually decided to join Middlesex, but has had two spells back at Glamorgan on loan and struggled for consistency during his early years at the club after attempting to add a yard of pace in order to put himself into England contention.

His form returned in 2015, when he took 69 Division One wickets at 25.74 to take Middlesex to second, and while his average doubled the following summer, he played seven games in their Championship-winning season.

He developed his batting over the next few seasons, scoring his first professional hundred in the 2019 Royal London Cup, but struggled to nail down a regular spot in the side across formats. He has also developed his career off-field, becoming the PCA's chairman earlier this year.

"I always saw myself one day returning to Glamorgan, and this this is the perfect time for me to do so, and I am excited for the next chapter in my cricket career," Harris said. "I still believe I have a lot to offer on the pitch and I want to use my experience to assist the younger players and help us push for silverware."

Mark Wallace, Glamorgan's director of cricket, said: "From the moment James left, we've wanted to re-sign him. He's a fantastic acquisition for the club. He's a high-class seam bowler, a strong lower-order batsmen and a great voice in the dressing room given his leadership experience."

Matt Roller is an assistant editor at ESPNcricinfo. @mroller98