In March 2019, he was named in Pakistan’s ODI squad for their series against Australia.He made his debut on 29 March becoming the fifteenth batsman, and third for Pakistan, to score a century on his ODI debut.He made 112 runs before being dismissed, the highest score by a batsman for Pakistan on debut in an ODI.
In April 2019, he was named in Pakistan’s preliminary squad for the 2019 Cricket World Cup although he did not make the final squad.
In October 2019, he was named in the Test squad for the tour to Australia although he did not play. He made his Test debut later in the year against the touring Sri Lankans.On debut, he scored a century, becoming the first male cricketer to score a century on both Test and ODI debut.In the second Test match against Sri Lanka, he scored 174 runs in the second innings of the match, becoming the first batsman for Pakistan to score hundreds in each of his first two Tests. His 278 run partnership with Shan Masood was the second-highest opening stand for Pakistan in Test cricket.He was named both the player of the match and the player of the series.
In June 2020, he was named in a 29-man squad for Pakistan’s tour to England during the COVID-19 pandemic. In July, he was shortlisted in Pakistan’s 20-man squad for the Test matches against England.In October 2020, he was named in a 22-man squad of “probables” for Pakistan’s home series against Zimbabwe. In November 2020, he was named in Pakistan’s 35-man squad for their tour to New Zealand. In January 2021, he was named in Pakistan’s Test squad for their series against South Africa.
In May 2021, in the second match against Zimbabwe, he scored his first double century in Test cricket, with 215 not out. He was the first opener from Pakistan to score a Test double century in Zimbabwe.