England captain Joe Root (three) also had a deja vu moment when Herath dismissed him for the second time in the match.
England skipperJoe Root won the toss and elected to bat first.
Only four members of this team played in the Chittagong Test and the presence of new faces such as Ben Foakes, and Jack Leach, who took five wickets in his second Test, as well as the continued success of Sam Curran gives Root great hope for the future.
England's Moeen Ali, center, celebrates the dismissal of Sri Lanka's Niroshan Dickwella with team mates during the fourth day of the first test cricket match between Sri Lanka and England in Galle, Sri Lanka, Friday, Nov. 9, 2018.
But both fell after attacking shots, with Kaushal leg before trying to sweep Leach for 30 and Karunaratne caught and bowled by Ali for 26 as he skipped down the pitch for an attempted heave. As it turned out, Stokes struck and Sri Lanka were another man down when they could have easily avoided facing another over with basic gamesmanship.
'After that, the way they batted, they took the game away from us.
Beginning day four on 15-0, Sri Lanka needed a solid start to prolong their battle and overnight batsmen Dimuth Karunaratne and Kaushal Silva saw through the first hour without any damage as they put on 51 runs for the opening stand. Angelo Mathews scored his second fifty of the match and Kusal Mendis contributed 45 runs to the cause but the rest of the batting order could not hold up and bundled out for 250 runs.
The 40-year-old ends his illustrious Test career with 433 wickets - placing him joint-eighth on the all-time list - and Chandimal was disappointed to see his team-mate bow out on a losing note.
Vice-captain Suranga Lakmal stepped in to the leadership role after captain Dinesh Chandimal was forced off the field with a groin injury. "If it's deemed that actually Ben Foakes isn't in the XI that's going to win a Test match then you have to make that tough call". "It's hard work", Foakes said. "Regardless of what's happened that's such a special feeling that no-one can take away".
Kusal Mendis was batting on 21 at the break with the hosts staring at a comprehensive defeat in Rangana Herath's farewell test at the Galle International stadium.
Sri Lanka's failure to grasp finer nuances of sessions cricket irked Hathurusingha further.
'Credit goes to England, they played some outstanding cricket.
Jennings' second Test ton was neither pretty nor dynamic - and offered no clues about how he might reverse his struggles on seaming decks at home - but it was a study in concentration, the kind of effort England might have feared had headed for retirement with Alastair Cook.