With the wicket of Mohammad Amir (9), Herath completed 100 wickets against Pakistan and when 25 runs were needed for a win, Sri Lanka claimed the final wicket of Yasir (6 not out) but only to find it was a no ball.
With the ball taking spin on a hard Sheikh Zayed Stadium pitch, Pakistani batsmen struggled against veteran left-arm spinner Rangana Herath (2-19) and off-spinner Dilruwan Perera (2-25).
The Dinesh Chandimal-led side kept losing wickets at regular intervals and eventually were bundled out for 138, thus leaving Pakistan 136 to win the Test and take an early lead in the two-match series. The wicket-keeper's highest test score, surpassing 81 in July against Zimbabwe, lasted 117 balls, and included nine fours and a six.
Chandimal looked like a captain who had finally got command of his ship as he, along with Dickwella, helped Sri Lanka safely to a total of 227/4 at the end of Day 1.
Stat of the day - 5 Pakistan have lost all 10 wickets on the fifth day of a Test five times since the start of 2016. Looking to the future, yes, he is 39, a little bit old now, but he always tries to do his best.
Pakistan, led by Shah, bowled well in the morning.
Moreover, Arthur said that if the batsmen would allow a bowler like Herath to settle, he would surely push the side on backfoot. Had the stand continued to make runs at the going rate of scoring, it would have eaten into 11 more overs of the match.More news: Eden Hazard Caught Doing Raheem Sterling Impression In Chelsea Training
Dickwella made the most of his reprieve and went on to hit the day's sole six as he ended unbeaten on 42.
"I have no idea". Dickwella was unbelievable in the second innings, he got us to the 140 mark.
The two teams will now meet each other in the second and final Test beginning October 6 at the Dubai International Stadium, Dubai.
Firstly, they arrived in the UAE in a certain state of disarray, after a woeful year that has seen their captaincy armband thrown around more liberally than the practice balls in fielding drills before the start of play.
For the home side to clinch the Test, they perhaps need Sarfraz to play a substantial knock.
"I am really proud of this achievement", Herath said.