Sri Lanka 419 (Chandimal 155*, Karunaratne 93, Dickwella 83) and 138 (Yasir 5-51) beat Pakistan 422 (Azhar Ali 85, Haris 76, Herath 5-93) and 114 (Herath 6-43, Perera 3-46) by 21 runs
Abu Dhabi: Sri Lanka pulled off a dramatic win over Pakistan in the first Test played between the two sides in the UAE.
Pakistan needed to make just 138 runs to win the match but the Sri Lanka bowlers led by Rangana Herath, managed to dismiss them for 114 and thus recorded a 21-run win.
Herath took six wickets on the day and thus got to 400 Test wickets. Herath is the first left-arm spinner and the second Sri Lankan after Muttiah Muralitharan to reach the figure.
Pakistan lost their first wicket when Sami Aslam nicked it to Dimuth Karunaratne at first slip off Rangana Herath in the fourth over.
Suranga Lakmal then got Azhar Ali for a duck in the next over and he was followed by Shan Masood.
Sri Lanka then kept chipping away at Pakistan as Dilruwan Perera and Herath got Babar Azam and Asad Shafiq respectively and suddenly Pakistan were in doldrums. Herath went on to take three more wickets and towards the end the equation came down to Pakistan needing 25 runs to and Sri Lanka needing one wicket for a win.
It looked like Sri Lanka had pulled it off when Yasir Shah nicked it to short leg off Dilruwan Perera and Sri Lanka erupted in celebrations. But replays showed that Pererra had overstepped it and Pakistan survived. Herath then completed the coup as when he trapped Mohammad Abbas leg before.
Earlier, leg-spinner Yasir Shah took 5-51 -- his 32nd five wicket haul in Tests -- to dismiss Sri Lanka for 138 in their second innings.
With the ball taking spin on a difficult Sheikh Zayed Stadium pitch, Pakistani batsmen struggled against veteran left-arm spinner Rangana Herath (2-19) and off-spinner Dilruwan Perera (2-25).
Herath dismissed opener Sami Aslam for two before accounting for Asad Shafiq who made a fighting 20, reaching within four wickets of the 400-wicket milestone in his 84th Test.
Perera then had Shan Masood (seven) and a shaky Babar Azam for three to leave Pakistan struggling at 32-4.
In between fast bowler Suranga Lakmal had Azhar Ali caught behind for nought.
Pakistan, led by Shah, bowled well in the morning.
Sri Lanka, who resumed at 69-4, lost their last six wickets for 69 runs. Niroshan Dickwella fought hard during his unbeaten knock of 40 studded with four boundaries.
The second Test -- a day-night match -- starts in Dubai from Friday.