Pakistan defeated South Africa by 27 runs in the third T20I in Centurion to avoid the series whitewash.
South Africa won the series against 2-1, adding to a 3-0 whitewash in Test series and a 3-2 win in a five-match ODI series.
Imad Wasim and Shaheen Afridi bowled brilliantly while defending 169, restricting South Africa to 30 for two in the first seven overs. The Proteas were always behind the required rate as they limped to 141 for nine in their 20 overs.
"Tonight was disappointing but we’re really chuffed with a series win against the best T20 team in the world," said David Miller. "We’ve beaten them with a young side. There’s a lot of depth in South African cricket."
"A win is always something that gives you satisfaction," said Pakistan captain Shoaib Malik. "Our youngsters have learnt a lot from this tour and we played really good white-ball cricket."
Beuran Hendricks took a career-best four for 14 as Pakistan’s batsmen struggled after being sent in.
Seven Pakistan batsmen reached double figures but the highest score was 26 by Mohammad Rizwan.
A mid-innings collapse when three wickets fell for five runs in nine balls reduced Pakistan to 94 for five.. Malik was run out for 18 after a mix-up with Talat.
Shadab Khan hit three sixes in the final over from Andile Phehlukwayo to finish with 22 not out off eight balls. He then took two wickets, including Miller, and was named player of the match. Miller was the player of the series.
South Africa never recovered from their slow start despite innings of 41 by Rassie van der Dussen and an unbeaten 55 off 29 balls by Chris Morris.
Mohammad Amir followed up the tight bowling of Imad and Afridi to take three for 27, while Shadab and Faheem Ashraf shared four wickets.