Pakistan chased down the target of 345 with 6 wickets in hand and 10 balls to spare.
Opting to bat first, Sri Lanka rode on centuries from Kusal Mendis (122 off 77 balls) and Sadeera Samarawickrama (108 off 89 balls) to rack up a mammoth 344/9 on the board.
Amid the carnage, Hasan Ali returned with four wickets for Pakistan by conceding 71 runs in his 10 overs.
Chasing the target, the Men in Green found themselves struggling at 37/2 as Dilshan Madushanka dismissed Imam-ul-Haq (12) and Babar Azam (10) cheaply.
Amid the pressure situation, Abdullah Shafique and Mohammad Rizwan rose to the occasion for Pakistan, adding 176 runs for the third wicket to put Sri Lanka on the backfoot.
While Abdullah got out after scoring 113 off 103 balls, Rizwan held the one end firmly and stayed unbeaten on 131 off 121 balls to take Pakistan over the line with 10 deliveries to spare.
For their stunning display with the bat, Abdullah Shafique and Mohammad Rizwan received rich praise from the cricket fraternity on social media platform X.
Here are the reactions: