Abid, who scored a ton in his ODI debut against Australia at Dubai in March, remained unbeaten on 109 while Azam was 102 not out as Pakistan reached 252 for two when the stumps were drawn
Abid Ali and Babar Azam each hit a century to light up the final day of Pakistan's first Test at home in a decade against Sri Lanka as the weather-hit match at Rawalpindi ended in a drab draw on Sunday.
Rain and bad light did not allow full play on any of the previous four days since Sri Lanka won the toss and chose to bat but Pakistan's supporters still packed the Rawalpindi Cricket Stadium on the final day amid bright sunshine.
There was ample entertainment on offer for the crowd as Abid became the only male cricketer to hit a century on his debut in both the Test and one-day international formats.
Azam also added to his burgeoning reputation as one of world's top upcoming batsmen, completing his third Test hundred after knocks of 104 and 97 in his last two Tests in Australia.
Abid, who scored a ton in his ODI debut against Australia at Dubai in March, remained unbeaten on 109 while Azam was 102 not out as Pakistan reached 252 for two when the stumps were drawn.
Shan Masood and captain Azhar Ali missed out for the hosts, who picked up 20 points for the draw - their first in the World Test Championship, having lost 2-0 in Australia. Sri Lanka also picked up 20 points to take their total to 80.
The recently-launched WTC sees the top nine test nations face-off over a two-year period, scoring points based on their success and culminating in a final at Lord's in June 2021.
Earlier, Sri Lanka declared their first innings closed on 308 for six immediately after batsman Dhananjaya de Silva completed his sixth Test century.
Right-hander De Silva, stuck on 87 since the third day, reached his mark with a sublime cover drive off fast bowler Mohammad Abbas and remained unbeaten on 102.
Dhananjaya de Silva— ESPNcricinfo (@ESPNcricinfo) December 15, 2019
Three centurions on day five in Rawalpindi as the first home Test in Pakistan in over ten years ends in a draw https://t.co/HlqQ1zdsek #PAKvSL pic.twitter.com/JUB4mDqCpT
Dilruwan Perera was not out on 16 when Sri Lanka captain Dimuth Karunaratne called the pair in to allow his bowlers to have a go at Pakistan's batsmen.
The two-match series marks Pakistan's first tests on home soil since a militant attack in 2009 on Sri Lanka's team bus in Lahore.
The teams will next travel to Karachi for the second and final Test from Thursday.