Cape Town - Opening batsman Fakhar Zaman hit an aggressive 70 before Pakistan's innings stalled in the series-deciding fifth and final one-day international against South Africa on Wednesday.
LIVE: Proteas v Pakistan, 5th ODI
With the series at stake, Pakistan made 240 for eight after being sent in to bat at Newlands.
While Zaman was at the crease, Pakistan were on course for a big total. He was fourth out after a 73-ball innings when the total was 128 in the 25th over.
But the scoring rate slowed after his dismissal, with only 49 runs scored in the next 15 overs.
Imad Wasim, batting at number eight, gave the innings late impetus, hitting 47 not out off 31 balls. He hit sixes off Dale Steyn and Kagiso Rabada in the last two overs.
Medium-paced all-rounders Dwaine Pretorius and Andile Phehlukwayo both took two wickets in a disciplined South African bowling performance.
The left-handed Zaman hit ten fours in making his first half-century after a sequence of low scores in both the Tests and the one-day internationals. He was dropped on 20 when he slashed Rabada to Hashim Amla, who could not hold a sharp, chest-high chance.
All four matches in the series, which is tied at 2-2, have been won by the side batting second, although the record at Newlands favours the team batting first by 28 to 12.