Shadab Khan produced a remarkable unbeaten century to rescue Pakistan from 154-9 and secure a stunning one-wicket victory over England in Lahore on Sunday, booking the hosts' place in the final of the ODI tri-series.

Pakistan appeared to be heading for defeat while chasing England's 242-run target, but Shadab scored 113 not out before sharing an unbroken 89-run partnership with No. 11 Haris Rauf to complete the chase with 17 balls remaining.

The victory was built on a record-breaking performance. Shadab's 113 is the highest score by a batter at No. 8 or lower in men's one-day internationals, while the last-wicket stand with Rauf is the highest in a successful ODI chase.

England, meanwhile, suffered a third consecutive defeat in the competition, having already lost to Sri Lanka after failing to defend a target of 431.

Shadab and Rauf turn the match around

Pakistan's chase began badly as Fakhar Zaman and Babar Azam both fell for 10, while Saim Ayub made only six. Saad Baig counter-attacked with 32 and Salman Ali Agha scored 26, but England continued to take wickets.

Shadab arrived with Pakistan in trouble and saw the innings deteriorate further before Rauf joined him at the crease. With nine wickets down, the pair had to combine patience with calculated aggression against an England attack that was close to sealing victory.

Shadab struck 13 fours and five sixes from 96 balls, while Rauf finished unbeaten on seven from 19 deliveries. Shadab managed the strike effectively, ensuring the tailender was not exposed unnecessarily as the target came within reach.

The most dramatic moment came when Shadab was given out leg-before wicket off Gus Atkinson with Pakistan still needing 21 runs. He reviewed the decision as he walked off, and the replay showed an inside edge, allowing him to return to the crease.

The reprieve proved decisive. Rauf struck the winning boundary, completing a remarkable recovery and sending Pakistan into the final.

Duckett century cannot save England

England had also struggled with the bat after being put in, losing Tom Banton for four in the opening over before Shaheen Shah Afridi dismissed Joe Root for five. Captain Harry Brook was run out for one, leaving England reeling at 19-3.

Ben Duckett steadied the innings with 105 from 111 balls, hitting 10 fours and two sixes. He shared a 93-run fifth-wicket partnership with Sam Curran, who contributed 42, to give England a chance of posting a competitive total.

But Shaheen returned to take further wickets and finished with 4-46. Arafat Minhas and debutant Razaullah claimed two wickets apiece as England slipped to 201-9.

Gus Atkinson then added an unbeaten 36 to help England reach 241 before the innings ended in 46.4 overs. It proved insufficient, despite their strong position during Pakistan's chase.

Pakistan secure final place as England face elimination

The result confirmed Pakistan's place in Saturday's final after three consecutive victories in the tri-series. Their remaining group match against Sri Lanka on Tuesday will determine the final standings.

England's position is far more precarious after three straight defeats. They need Pakistan to beat Sri Lanka and must then defeat the same opponents themselves on Thursday to keep their hopes of reaching the final alive.

For Pakistan, the win will be remembered for Shadab's composure under pressure and the extraordinary contribution of Rauf at the other end. With the innings almost lost, the pair turned an apparently certain defeat into one of the most remarkable finishes of the tournament.