Herath also became the first left-arm spinner to bag 400 wickets in Tests.
Pakistan were 67 for 5 at Tea and with skipper Sarfraz Ahmad and Haris Sohail still at the crease, there was some hope still in the Test for the hosts.
It took nearly four days for the first 20 wickets of the match to fall and then only a little over a day for the next 20 dismissals as Pakistan crumbled to quality spin an hour or so into the final sessions of the match.
Herath has been a scourge for Pakistan in the recent past (100 wickets against Pakistan so far) and hence it was not surprising when he was man responsible for ending Pakistan's unbeaten run in Abu Dhabi.
The 39-year-old got to 400 Test wickets. He had been playing league cricket in Stoke-on-Trent, when Muttiah Muralitharan injured his shoulder a few days out from the first Test against Pakistan. We were surprised, but we thought before play started today that 160-plus would be a winning total.
Nintendo Restricts Livestreaming of Their Games on YouTube for Partners
This is most likely in direct response to the recent controversy regarding certain famous influencers like PewDiePie . An email was sent out today to members of the Nintendo Creators Program that described the change to their policy.
Yasir Shah, Pakistan's ace leg-spinner, was rendered ineffective by Chandimal, even though he had troubled the rest of the Lankan batsmen continuously.
Pakistan still trail the Sri Lankan first innings total of 419 by 153 runs with six wickets intact. "We wanted a good partnership up front but we didn't get that and that put us under pressure". Credit goes to people like Dickwella and Karunaratne.
Now the two teams will fly to Dubai for day-night Test match, the last of two-match series scheduled to begin on October 6.
Sarfraz was gutted to have lost the match, and said: "This is part of the game but I'm very disappointed because we had recovered really well in this game".
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.
"[Niroshan] Dickwella was outstanding in the second innings to get us to the 140 mark".
"After we got that wicket, we all celebrated as we had a win as a team, finally after a long time". There was some assistance from the surface. "It took me a long time (to make runs), but that is how you play on this pitch and I'm happy".