Shoaib Malik retires after having played 287 ODIs for Pakistan © Getty

Pakistan all-rounder Shoaib Malik has officially announced his retirement from ODI cricket. His plan had always been to step down from the 50-over format after the World Cup and he formally announced it in a press conference after Pakistan's game against Bangladesh at Lord's. He will continue to play T20 cricket and hopes to play in the World T20 in 2020.

Malik has played 287 matches for Pakistan, scoring more than 7,500 runs and picking up 158 wickets. His recent form has been patchy and his inclusion in the World Cup squad was controversial. He played just three matches in the tournament, registering two ducks and taking just one wicket.

The 37 year-old said the decision was based on a desire to spend more time with his family and to focus on the shortest format in the hope that he can make the World T20.

"As I mentioned in my previous interviews, I'm going to retire from World Cup," he said. "Today was our last game, and I'm retiring from ODI cricket. I had planned this for a few years to retire on the last Pakistan World Cup match. I'm sad that I'll be leaving a format of cricket that I once loved but happy that I'll have more time to spend with my family. This will also allow me to focus on Twenty20 cricket.

"I would like to thank some of the most important people whose support and backing helped me through these 20 years of international cricket. Starting with the players I shared dressing rooms with, all the coaches I have played under, my friends and family, the media, my sponsors, the Pakistan cricket board, and Pakistan sports board. But most importantly, my fans. I love you all. Thank you."