Sri Lanka, who won the toss and batted, were skittled out by Pakistan for 173 in 43.4 overs in the fourth day-night international in Sharjah on Friday.
Lahiru Thirimanne top scored with 62. For Pakistan fast bowler Hasan Ali finished with 3-37.
Pakistan lead the five-match series 3-0.