Pakistan's 19-year-old Shaheen Afridi took 6-35 – the best figures so far in the ICC Cricket World Cup – as his side bowed out with a win against Bangladesh at Lord's ©Getty Images

New Zealand’s place in the International Cricket Council Cricket World Cup semi-finals was confirmed today after Pakistan failed to defeat Bangladesh by at least 308 runs.

But despite Pakistan's involvement ending, they completed their group stage matches with a flourish, winning by 94 runs.

Nineteen-year-old Shaheen Afridi took 6-35, the best figures in the tournament so far and the best by a Pakistan player at a World Cup.

Afridi's team reached 315-9 from 50 over as they opened the innings at Lord’s – where the final will be played on July 14 - with Imam-ul-Haq making 100 off 100 balls.

In response, Bangladesh were all out for 221.

In the wake of his side’s exit, Pakistan’s outstanding batsman Shoaib Malik announced his retirement from one-day internationals.

So Pakistan finish fifth, one place outside the semi-final placings.

Although their points total of 11 matches that of New Zealand, Pakistan’s net run rate is inferior to their rivals, -0.430 to 0.175.

Bangladesh are in seventh place, although they could be overtaken if South Africa beat Australia – already confirmed as semi-finalists – in tomorrow’s final round of group matches, with India also playing Sri Lanka.

England and New Zealand will be in opposite semi-finals, with their opponents being decided once Australia have completed their last group match.