Postpublished at 18:03 British Summer Time 29 June 2019
It wasn't the winning moment but a crucial moment.
Wahab Riaz's 15 off nine balls was a brilliant knock too.
Pakistan go above England in World Cup table
Imad Wasim stars with unbeaten 49 as Pakistan win with two balls to spare
Afghanistan posted 227-9 thanks to stubborn middle order
Afghan and Najibullah both make 42
Shaheen impresses once again, taking four wickets - including two in two balls
Callum Matthews
It wasn't the winning moment but a crucial moment.
Wahab Riaz's 15 off nine balls was a brilliant knock too.
Pakistan all-rounder Imad Wasim: "When I went in they were bowling brilliantly but I just hung in there. We wanted to bat out the 50 overs and see.
"Gulbadin was the only one who could be targeted, they have world-class spinners so we attacked him.
"Thank you to the crowd, it feels like home here. They gave us a boost in confidence.
"Win our next game and we'll see what happens. Now we believe we can win from anywhere."
Imad Wasim has been named man of the match.
He took 2-48 earlier and then hit that match-winning 49 not out.
We're all still speechless that Gulbadin Naib decided to bowl himself with five overs left.
Afghanistan were definitely favourites at that point but the over went for 18 and saw a huge momentum shift.
#bbccricket or text us on 81111 (UK Only)
Sonsofpunjab: Please can some ask Gulbadin why he felt he need to bowl over when he is interviewed, I suspect there are thousands of cricket fans who would like to know the answer.....
The ginger Pirlo: ...and a full toss to finish. Not seen anything like it. Outrageous captaincy. The worst you will ever see. Literally giving it away to be a hero himself.
Just a reminder that victory for Pakistan sees them leapfrog England and into the final semi-final slot.
England face the prospect of having to beat India tomorrow and New Zealand on Wednesday to reach the last four.
Mel Jones
Ex-Australia batter on BBC Test Match Special
This takes away from the match. It was an absolute nail-biter.
Your heart goes out to Afghanistan who came so close.
A match-winning 49 not out from 54 balls from Imad Wasim.
Just a reminder he should have been given out on one...
Mel Jones
Ex-Australia batter on BBC Test Match Special
There are not enough stewards to protect the players and the TV crews down there.
There are some very unsavoury scenes on the pitch at the moment.
This is not pretty.
Daniel Norcross
BBC Test Match Special
It's confounded us all. A sensational match.
You'd have to say that at the back end of the match it all came down to that one over from Gulbadin which went for 18 runs.
We are seeing some fans on the pitch.
That is a HUGE victory for Pakistan.
It leaves England with major work to do.
Mel Jones
Ex-Australia batter on BBC Test Match Special
There are pitch invaders! People coming out from everywhere.
People are invading the pitch!
Another full toss and it's carved through the covers by Imad Wasim and away to the boundary.
Asghar Afghan, the former skipper, is taking control out there.
Imad Wasim drives and it's straight at mid-on but they decide to run anyway. He should be run out by an absolute mile but it's a poor throw and Gulbadin Naib can't collect and Pakistan run an overthrow too.
Two required.
Daniel Norcross
BBC Test Match Special
At this stage everyone's brain is melted.
Another awful delivery.
It was going about five yards down the leg side but a heave from Wahab Riaz means it hits his glove and they jog a single.
Four required.
Amy Lofthouse
BBC Sport at Headingley
This is the most beautiful kind of madness.