Pakistan got off to a great start in the run chase as Fakhar Zaman (50) came out all guns blazing and he along with Azhar Ali (34) added 74 runs for the first wicket.
But the former World Champions lost wickets at regular intervals in the middle overs that got Sri Lanka right back in the match. Just when the match was swinging towards Sri Lanka, Sarfraz Ahmed (61*) played a captain’s knock to help Pakistan beat Sri Lanka by 3 wickets.
Sri Lanka’s fielding disintegrated in the last 45 minutes as they dropped a couple of chances and Pakistan rode on their luck to get home after being reduced to 162 for 7 at one stage.
For Sri Lanka Nuwan Pradeep was the pick of the bowlers, returning with figures of 3 for 60 in his 10 overs.
Earlier, Pakistan bundled out Sri Lanka for 236 with Junaid Khan and Hasan Ali picking up three wickets apiece.