Pakistan's valiant follow-on effort of 478 wasn't enough, with South Africa only needing 58 to win.
The West Indies cricket team arrived in Islamabad on Monday for their first Test series in Pakistan in 18 years.
Day 3 of the second Test between South Africa and Pakistan in Cape Town had a heated encounter between Babar Azam and Wiaan Mulder.
Pakistan Test captain Shan Masood changed the record books with his brilliance and a memorable opening stand with his predecessor Babar Azam on Day 3 of the second Test against South Africa
South Africa vs Pakistan 2nd Test Day 4, Highlights: Pakistan captain Shan Masood's knock of 145 went in vain.
Babar Azam was left "disappointed" while trying to comprehend the shot he had played after being set on the crease on Day 3 of the second Test against South Africa.
Babar Azam, who has not scored an international century since August 2023, fell short again when he was caught in the gully off Marco Jansen 14 minutes before the close of play.
The PCB said on Sunday that the local doctor monitoring his injury had spoken to a specialist to arrange a consultation for the batter with him.
Pakistan were reeling in response to a relentless South African batting performance on the second day of the second Test against Pakistan at Newlands on Saturday.
South Africa vs Pakistan 2nd Test Day 2 Highlights: Pakistan slumped to 64/3 at stumps on Day 2 of their second Test against South Africa in Cape Town.
Pakistan's young all-format opener, Saim Ayub could miss next month's ICC Champions Trophy after being ruled out of competitive cricket for six weeks
Ryan Rickelton and Temba Bavuma hit centuries and batted South Africa into a strong position on the first day of the second Test against Pakistan at Newlands on Friday.
Pakistan suffered an injury scare at the start of the second Test against South Africa in Cape Town on Friday after opener Saim Ayub was stretchered off following injuring his ankle.
South Africa vs Pakistan 2nd Test Day 1 Highlights: Ryan Rickelton and Temba Bavuma hit centuries and batted South Africa into a strong position on the first day of the second Test against Pakistan.
South Africa vs Pakistan 2nd Test Live Streaming: South Africa are all set to host Pakistan in the second Test of the two-match series on Friday in Cape Town.
The National Karachi Stadium, which is supposed to host the opening match between Pakistan and New Zealand, is still yet to be completely renovated.
ICC has adopted the 'Hybrid' model for this edition of the Champions Trophy with India scheduled to play its matches at a neutral venue in Dubai.
South Africa registered a thrilling two-wicket win over Pakistan in the first Test to qualify for World Test Championship final.