Then it was Angelo Mathews who got Sri Lanka back into the game trapping in-form Nasir Jamshed leg before and then deceived Kamran Akmal with a slower one.
From 57 for three, Pakistan soon became 64 for four, as Herath bowled Shoaib Malik with a classical left-armer's delivery. He flighted one to invite Malik for a drive and the ball turned a shade after pitching to knock the batsman's off-stump.
Having got a reprieve at 24, Hafeez who till now was happy to play the waiting game, chanced his arms. First he pulled Mathews for a boundary and then reverse swept Herath. He followed it up with a straight six.
In Image: Sri Lankan bowler Rangana Herath, center, celebrates the wicket of Pakistan's batsman Shahid Afridi, unseen, with teammates