Pakistan's Shan Masood (c), left, and Pakistan's Babar Azam run between the wickets during the third day of the second test cricket match between South Africa and Pakistan, in Cape Town, South Africa.

South Africa's Kagiso Rabada in action during the third day of the second Test match between South Africa and Pakistan in Cape Town, South Africa.

Pakistan's Mohammad Rizwan runs after hitting the ball during the third day of the second Test match between South Africa and Pakistan in Cape Town, South Africa.

From left, South Africa's Marco Jansen, Wiaan Mulder, Aiden Markram and David Bedingham get ready in the slips during the third day of the second test match between South Africa and Pakistan in Cape Town, South Africa.

Pakistan's Mohammad Rizwan smashes the ball for six runs during the third day of the second Test match between South Africa and Pakistan in Cape Town, South Africa.

Pakistan's Mohammad Rizwan, centre, receives medical attention after being struck by the ball in the shoulder during the third day of the second Test match between South Africa and Pakistan in Cape Town, South Africa.

South Africa's Kwena Maphaka, left, bowls the ball while Pakistan's Babar Azam looks on during the third day of the second Test match between South Africa and Pakistan in Cape Town, South Africa.

South Africa's Kwena Maphaka celebrates his debut test wicket that of Pakistan's Babar Azam during the third day of the second Test match between South Africa and Pakistan in Cape Town, South Africa.

South Africa's David Bedingham, left, and Kyle Verreynne, center, congratulate Kwena Maphaka, right, on his debut test wicket during the third day of the second Test match between South Africa and Pakistan in Cape Town, South Africa.

South Africa celebrate the wicket of Pakistan's Babar Azam during the third day of the second Test match between South Africa and Pakistan in Cape Town, South Africa.

South Africa's Kyle Verreynne, left, stumps Pakistan's Salman Agha during the third day of the second Test match between South Africa and Pakistan in Cape Town, South Africa.

South Africa's Kagiso Rabada, left, is congratulated by teammate Marco Jansen after his wicket of Pakistan's Aamir Jamal during the third day of the second test match between South Africa and Pakistan in Cape Town, South Africa.

South Africa's Aiden Markram, David Bedingham and Kyle Verreynne watch as Pakistan's Babar Azam, right, plays a shot during the third day of the second test match between South Africa and Pakistan in Cape Town, South Africa.

Pakistan's Shan Masood in action during the third day of the second test match between South Africa and Pakistan in Cape Town, South Africa.

Pakistan's Babar Azam, right, plays a shot while South Africa's Kyle Verreynne looks on during the third day of the second test match between South Africa and Pakistan in Cape Town, South Africa.

Pakistan's Babar Azam plays a shot while South Africa's Kyle Verreynne looks on during the third day of the second test cricket match between South Africa and Pakistan, in Cape Town, South Africa.

Pakistan's Shan Masood, right, celebrates his 100 while Pakistan's Babar Azam looks on during the third day of the second test match between South Africa and Pakistan in Cape Town, South Africa.