Pakistan beat South Africa by 19 runs on the DLS method to cause a Champions Trophy upset in the Edgbaston rain.
Pakistan, hammered by India on Sunday, reduced the world number ones to 90-4 and 118-6 before David Miller’s 75 not out helped them to 219-8.
Although Morne Morkel took 3-18, Pakistan were 119-3 when the forecast bad weather arrived after 27 overs.
The win reignites Pakistan’s semi-final hopes, while South Africa may have to beat India to stay in the tournament.
The result opens up Group B, which also contains Sri Lanka. They meet India on Thursday and, regardless of the result, all four teams will stay be able to qualify for the semi-finals in the final round of fixtures.
The runners-up in this group face England in the first semi-final in Cardiff on Tuesday.
Former England spinner Graeme Swann on TMS: “We thought this was going to be one-sided because of the way Pakistan played against India. However, you can never really write Pakistan off because of their mercurial nature. They are number one in the world at surprising people.”
Man of the match Hasan Ali: “It was a team effort. I stuck to my plan and we all stuck to our plan. I dropped a catch in the last game, so I knew I had to cover that. I did it nicely.
“It’s very important to win man of the match because it’s my first ICC event. I’m very excited.”
Pakistan captain Sarfraz Ahmed: “That is a feeling we miss, not playing in Pakistan. Maybe that was a difference – the crowd was supporting us and that’s why the players boosted up.”
South Africa coach Russell Domingo: “Pakistan are a proud cricketing nation. I know when they have a bad game, everybody jumps on their back and says how bad they are.
“I can tell you now, in our position, I don’t think they are bad at all. They are a dangerous side. They have some world-class players. They are always going to be a threat.”