Pakistan beat South Africa by 28 runs and won the ODI series at SuperSport Park in Centurion on Wednesday, after the Proteas failed to reach the 321-run target.
Fakhar Zaman had hit his second successive century and captain Babar Azam scoring 94 in the series-deciding third and final one-day international.
Fakhar again scored rapidly, although he fell short of repeating the carnage he inflicted on the South African bowlers in the second match in Johannesburg on Sunday, falling for 101 off 104 balls.
Fakhar and Imam-ul-Haq (57) laid a solid foundation with an opening partnership of 112 after Pakistan were sent in on a cloudy day.
Maharaj, one of seven changes in the South African team, took three for 45 in his 10 overs.s summer.