Mohammad Hafeez stroked an unbeaten 80 as Pakistan, who had been set 302 to win, drew the opening Test against Sri Lanka in Abu Dhabi.
Pakistan have only once chased more than 300 in a Test and after Sri Lanka declared on 480 for five in their second innings, they made no serious attempt to reach their target.
They closed on 158 for two in 52 overs.
Ahmed Shehzad (55) also hit a half-century after Sri Lanka batted on and closed their innings with captain Angelo Mathews unbeaten on 157 and Prasanna Jayawardene not out on 63.
Mathews moved on from his overnight 116 and ended up having faced 343 balls; his innings having played a key role in turning the game around and giving Sri Lanka an unassailable lead.
Jayawardene, having been recalled for this series, reached his fifth Test century before Sri Lanka decided a lead of 301 was enough.
Seven overs into Pakistan's innings, Sri Lanka struck to remove Khurram Manzoor, who was caught by Jayawardene off Suranga Lakmal, for eight.
Shehzad, who made 55 in 109 balls, then added 101 with Hafeez for the second wicket to effectively end an unlikely victory charge from the Sri Lankans.
He departed when he was trapped in front by Rangana Herath in the 38th over but little more than an hour later, the players were shaking hands.
Hafeez had moved on to 80 in 136 balls while Younus Khan, who scored a century in the first innings and then kept wicket on days four and five after Adnan Akmal suffered a fractured finger, was not out on 13 in 42 deliveries.
The second Test, which will see Pakistan recall Sarfraz Ahmed to keep wicket, begins in Dubai on Wednesday 8th January.
© Cricket World 2014