Abdul Razzaq smashed Pakistan to an incredible one-wicket victory over South Africa in the second one-day international.
Set a target of 287 in Abu Dhabi, Pakistan looked doomed after slipping to 257 for nine with just 15 balls remaining.
With only last man Shoaib Akhtar for company, Razzaq threw caution to the wind and saw his side to their target with one delivery to spare.
Needing 14 off the final over, Razzaq went to his century with consecutive sixes off medium pacer Albie Morkel (nough for 52).
The all-rounder then survived a caught behind appeal before blazing the penultimate ball through the covers to clinch victory.
Razzaq finished unbeaten on 109 from 72 balls, including seven sixes and 10 fours. Shoaib faced only one delivery, which he blocked, during a 10th-wicket stand of 32.
Pakistan had recovered from 70 for four thanks to solid contributions from Fawad Alam (48) and Shahid Afridi (49) but a trio of run outs looked to have ended their chance before Razzaq's heroics.
Earlier, Colin Ingram continued his superb start in international cricket with another century as South Africa posted a score of 286 for six after opting to bat first at the Sheikh Zayed Stadium.
After Robin Peterson (six) was bowled by Razzaq (one for 37) in the fourth over, number three Ingram shared stands worth 83 with Hashim Amla (65) and 86 alongside AB de Villiers (29).
The Warriors left-hander, who marked his debut earlier in October with 124 against Zimbabwe, went to three figures for the second time in five one-day innings from 118 balls.
He failed to add any more, however, as Wahab Riaz (two for 43) trapped him lbw to leave South Africa 216 for four in the 41st over but JP Duminy (54) added quick runs at the death