South Africa bounced back to claim four wickets as Pakistan moved to 229-7 at lunch on day 2 of the second test on Friday.

Fast bowler Andrich Nortje (3-48) grabbed two wickets and Temba Bavuma brilliantly run out Fawad Alam in an extended session of 2 hours and 45 minutes due to Friday prayers after Pakistan resumed on overnight 145-3.

More Images
Pakistan's Babar Azam, front, walks back to pavilion while South Africa players celebrate his dismissal during the first day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

South Africa bounced back to claim four wickets as Pakistan moved to 229-7 at lunch on day 2 of the second test on Friday.

South Africa's Anrich Nortje, center, celebrates after taking the wicket of Pakistan's Babar Azam, front right, during the first day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

Ashraf completed his half century off 97 balls with a straight-driven boundary off Kagiso Rabada just before lunch and two balls later pulled the fast bowler to midwicket for his ninth boundary.

Pakistan's Faheem Ashraf bats during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

Babar couldn’t add to his overnight 77 but together with Alam had revived Pakistan innings from 22-3 with a 123-run stand on the first day before rain and wet outfield wiped off the last session on Thursday.

South Africa's Anrich Nortje, right, celebrates after taking the wicket of Pakistan's Mohammad Rizwan, left, during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

Pakistan leads the two-match series 1-0 after beating the Proteas in the first test by seven wickets at Karachi last week.

South Africa's Anrich Nortje, right, bowls as Pakistan's Fawad Alam watches during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

South Africa's Anrich Nortje, right, bowls as Pakistan's Fawad Alam watches during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

South Africa's Anrich Nortje celebrates after taking the wicket of Pakistan's Mohammad Rizwan during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

South Africa's Anrich Nortje celebrates after taking the wicket of Pakistan's Mohammad Rizwan during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

South Africa's Anrich Nortje, third right, celebrates with teammates after taking the wicket of Pakistan's Mohammad Rizwan, left, during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

South Africa's Anrich Nortje, third right, celebrates with teammates after taking the wicket of Pakistan's Mohammad Rizwan, left, during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

Faheem Ashraf did the bulk of the scoring and was unbeaten on 54 while Yasir Shah was yet to score as Pakistan added further 84 runs in the session.

Pakistan's Babar Azam, front, walks back to pavilion while South Africa players celebrate his dismissal during the first day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

Pakistan's Babar Azam, front, walks back to pavilion while South Africa players celebrate his dismissal during the first day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

Ashraf completed his half century off 97 balls with a straight-driven boundary off Kagiso Rabada just before lunch and two balls later pulled the fast bowler to midwicket for his ninth boundary.

Ashraf survived an early lbw television referral against left-arm spinner Keshav Maharaj, who has picked up 3-75, and also needed a brief treatment after Rabada’s short-pitched delivery with the second new ball struck the left-hander’s right arm.

Nortje dealt an early blow when captain Babar Azam played a lose cut off fast bowler’s second ball of the day and Faf du Plessis held onto a head-high catch at second slip.

South Africa's Anrich Nortje, center, celebrates after taking the wicket of Pakistan's Babar Azam, front right, during the first day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

South Africa's Anrich Nortje, center, celebrates after taking the wicket of Pakistan's Babar Azam, front right, during the first day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

Babar couldn’t add to his overnight 77 but together with Alam had revived Pakistan innings from 22-3 with a 123-run stand on the first day before rain and wet outfield wiped off the last session on Thursday.

Alam, who scored 45, fell to Temba Bavuma’s splendid direct throw at the non-striker’s end from short mid-wicket as Alam went for a needless run, but fell short of his crease.

Nortje struck again immediately after South Africa took the second new ball when Mohammad Rizwan’s (18) top-edged pull went straight to Rabada’s hands at fine leg before Ashraf raised his fourth half century in his eighth test match.

Pakistan's Faheem Ashraf bats during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

Pakistan's Faheem Ashraf bats during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

Pakistan leads the two-match series 1-0 after beating the Proteas in the first test by seven wickets at Karachi last week.

More AP sports: https://apnews.com/apf-sports and https://twitter.com/AP_Sports

South Africa's Anrich Nortje, right, celebrates after taking the wicket of Pakistan's Mohammad Rizwan, left, during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

South Africa's Anrich Nortje, right, celebrates after taking the wicket of Pakistan's Mohammad Rizwan, left, during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

South Africa's Anrich Nortje, right, bowls as Pakistan's Fawad Alam watches during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

South Africa's Anrich Nortje, right, bowls as Pakistan's Fawad Alam watches during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

South Africa's Anrich Nortje celebrates after taking the wicket of Pakistan's Mohammad Rizwan during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

South Africa's Anrich Nortje celebrates after taking the wicket of Pakistan's Mohammad Rizwan during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

South Africa's Anrich Nortje, third right, celebrates with teammates after taking the wicket of Pakistan's Mohammad Rizwan, left, during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)

South Africa's Anrich Nortje, third right, celebrates with teammates after taking the wicket of Pakistan's Mohammad Rizwan, left, during the second day of the second cricket test match between Pakistan and South Africa at the Pindi Stadium in Rawalpindi, Pakistan, Friday, Feb. 5, 2021. (AP PhotoAnjum Naveed)