Mohammad Rizwan struck a brilliant century before Pakistan held their nerve with the ball to win the Twenty20 series opener against South Africa by three runs.
Wicketkeeper-batsman Rizwan had registered his maiden Test ton against the same opposition last week, with his knock of 115 not out helping the hosts seal a 2-0 sweep in Rawalpindi.
Promoted up the order to open in the T20 side in Lahore, the right-hander hit six fours and seven of his team's 11 sixes as he finished up unbeaten on 104 out of a total of 169-6.
His 64-ball knock helped Pakistan recover from the early setback of losing Babar Azam to the second ball of their innings, the captain run out without scoring thanks to a stunning direct hit by bowler Bjorn Fortuin at the non-striker's end.
Yet South Africa's fielding did not live up to the same standards for the remainder of the innings; they dropped Rizwan twice, allowing the him to record only Pakistan's second century in the shortest format.
Tabraiz Shamsi – who did not feature in the recent Test series due to a back injury – was the pick of the attack with 1-20 for an understrength South Africa, who started promisingly in reply thanks to 44 from Janneman Malan.
Usman Qadir dismissed both Malan and debutant Jacques Snyman as he claimed 2-21, though the visitors were still in with a chance when requiring 48 from the final four overs with six wickets in hand.
Hendricks (54) had overcome a quiet start to reach a valiant half-century, but Rizwan put an end to his innings with a sharp piece of fielding, picking up the ball and then diving into the stumps.
Left needing six from the final delivery, Fortuin was only able to squeeze a full ball from Faheem Ashraf out to deep square leg, meaning the Proteas – led by stand-in captain Heinrich Klaasen – came up just short.
The teams will conclude the three-match series with a double-header this weekend at the same venue.