The rain-curtailed encounter between the two teams is the first Test being played in Pakistan in the last 10 years, since the 2009 attacks.
Bad weather played spoilsport on all previous four days and only 91.5 overs were played.
The fourth day was also abandoned without a ball being bowled.
On Day 5, the visitors declared their innings at 308/6.
Pakistan showed their composure.
Dhananjaya de Silva and Karunaratne slam these feats
Meanwhile, Sri Lanka's Dhananjaya de Silva (102*) slammed his sixth career Test century. He now has 1,726 runs in 28 Test matches at 35.22. Skipper Dimuth Karunaratne (59) slammed his 23rd career Test fifty.
Abid Ali joins an elite list
Hundred on Test debut for Pakistan!
Khalid Ibadulla 166 Javed Miandad 163 Saleem Malik 100* Mohammad Wasim 109* Ali Naqvi 115 Azhar Mahmood 128* Younis Khan 107 Taufeeq Umar 104 Yasir Hameed 170 Yasir Hameed 105 Fawad Alam 168 Umar Akmal 129 ABID ALI 1⃣0⃣6⃣*#PAKvSLpic.twitter.com/Bstoa2k7O5