ABU DHABI - Dinesh Chandimal kept his nerve to pull off a sensational two-wicket win for Sri Lanka in the fifth and final one-dayer in Abu Dhabi on Friday, but Pakistan took the five-match series 3-2.
Chandimal finished with 64 not out off 70 balls and added a match-turning 40 runs for the ninth wicket with Ajantha Mandis (19 not out) to see Sri Lanka through with two balls to spare.
Mendis hit the winning boundary and smashed one of the two sixes in Umar Gul's penultimate over which cost Pakistan 15 runs and the match.
Chandimal hit his only boundary to reach fifty before hitting a six off Gul to clinch an unlikely win after Sri Lanka had wobbled at 8-195, derailed by Junaid Khan (3-31) and Saeed Ajmal (2-43).
Sri Lanka, who chased down a 285-run target in their second one-day win in Dubai, were cruising along at 1-113 after Kusal Perera (47) and Tillakaratne Dilshan (45) gave them a brisk start of 75.
When on 31, Dilshan completed 8,000 one-day runs, becoming the sixth Sri Lankan to achieve the milestone.
"We were just good enough to win the game," said skipper Angelo Mathews.
"Once again, a little disappointed with the batsmen who got starts but didn't go from there. Mendis came to the party, along with Chandimal, and got us over the line."
Pakistan captain Misbah-ul Haq said the series win was satisfying.
"Our team is in good shape," said Misbah. "Of course, it's disappointing to lose the last match but overall I am happy the way team won the series."
Earlier, Misbah top-scored with 51 while in-form batsman Hafeez, who scored three centuries in the series, made 41 as Pakistan were bowled out for 232 in the 50th over.Anwar Ali chipped in with a fiery 38-ball 41 not out spiced with one six and two fours.
Pakistan found the going tough after openers Ahmed Shehzad (17) and Sharjeel Khan (18) by 13th over.
Lasith Malinga took 4-57.
Misbah hit two boundaries and a six during his 74-ball knock, finishing with 1371 runs in 34 one-day matches this year — the most by any player.