Shadab Khan blasted his first ODI hundred to steer Pakistan to a one-wicket triumph over England in the fourth match of the tri-series at Gaddafi Stadium, booking a place in the final.

Facing a target of 242, Pakistan recovered from a severe collapse to finish the chase in the 48th over, with Shadab unbeaten on 113 from 96 balls, hitting 13 fours and five sixes.

The innings began poorly as Gus Atkinson removed Fakhar Zaman and Babar Azam for ten runs each, and debutant Henry Crocombe dismissed Saim Ayub for six, leaving Pakistan at 31-3.

Saad Baig and Salman Ali Agha tried to steady the ship, adding 43 runs before Jamie Overton got Saad for 32 off 22 balls.

England kept the pressure, with Liam Dawson taking Hasan Nawaz for 15 and Agha for 26, while Overton dismissed Arafat Minhas and captain Shaheen Afridi, putting Pakistan in deep trouble.

Shadab then assumed control of the chase, reaching his sixth ODI fifty and keeping Pakistan alive as wickets fell around him.

After debutant Razaullah fell for eight, Pakistan were nine down, yet Shadab persisted, partnering with Haris Rauf.

The duo forged a vital 50-run stand for the last wicket as Shadab completed his maiden ODI ton under pressure.

Rauf eventually struck the winning runs, sealing a memorable victory and sending Pakistan into the tri-series final.

Earlier, England were bowled out for 241 after batting first, with Ben Duckett's century rescuing them from an early wobble.

Shaheen Afridi dismissed Tom Banton and Joe Root early, and captain Harry Brook was run-out by a direct hit from debutant Razaullah, reducing England to 11-3.

Haris Rauf then took Jordan Cox for six, leaving England at 52-4.

Duckett and Sam Curran rebuilt the innings with a 93-run partnership for the fifth wicket before Shaheen got Curran for 42.

Duckett continued, reaching his fifth ODI hundred before Arafat Minhas claimed him for 105 off 111 balls, with 10 fours and two sixes.

Debutant Razaullah claimed two wickets, dismissing Will Jacks and Liam Dawson, while Gus Atkinson added an unbeaten 36 to help England post 241.

Shaheen led Pakistan's bowling with figures of 4-46, while Razaullah and Arafat each took two wickets and Haris Rauf added one.