National team captain Babar Azam also scored a century against South Africa.
Babar Azam scored his first century against South Africa in Centurion, playing an innings of 103 off 104 balls.
He shared a 177-run stand for the second wicket with Imam-ul-Haq in pursuit of the 284-run target against South Africa.
Babar Azam hit 17 fours during this period and when he was dismissed for a total score of 187 runs, the team is in a better position in the match.
Babar Azam has scored 13 centuries in his ODI career, scoring 4 against the West Indies, 3 against Sri Lanka, 2 against Zimbabwe and 1.1 against South Africa, England, New Zealand and Australia.