San Diego Padres' pitcher Jered Weaver announced on Wednesday that he’s retiring from baseball after a 12-year career.

Weaver was drafted by the Los Angeles Angels in 2004. He joined the Padres in February, after being with the Angels for 11 years. He hasn’t pitched since May because of an inflamed left hip and said that his body won’t allow him to compete like he wants to.

"I've decided to step away from baseball," he said in a statement the Padres released on Twitter.

"While I've been working hard to get back on the mound, my body just will not allow me to compete like I want to. Many thanks to the Padres' organization for the opportunity to play in the amazing city of San Diego. You have been very professional and respectful during this process, and I really appreciate that.”

He added, "I would also like to thank my teammates for welcoming me in with open arms and for all the support throughout the season. I'm excited for the next chapter in life and making up for lost time with my family. Thank you to everyone who has supported me over the years. It was a great ride."

The Padres pitcher made nine starts this season before going on the disabled list for his left hip. He was 0-5 with a 7.44 ERA. The former Angels pitcher finished his career with a 150-98 record and a 3.63 ERA. He helped the Angels win three straight AL West division titles from 2007 to 2009 and is second in Angels history in wins and games started, according to ESPN. He is third in Angels history in inning pitched (2,025) and strikeouts (1,598).

Weaver was a three-time All-Star and was the runner-up for the AL CY Young award in 2011.

Congrats Jered on a great career.