Usman Khawaja was able to put the disappointment of missing out on a Test century against the country of birth into perspective after being dismissed for 97 on day three of the first Test between Pakistan and Australia.

Opener Khawaja was born in Islamabad, less than half an hour's drive from Pindi Cricket Stadium where he shone for Australia on Sunday.

Khawaja appeared on the verge of his 11th century in the longest format as Australia responded superbly to Pakistan's first innings' 476-4 declared.

But impatience perhaps got the better of Khawaja as he contributed to his own downfall, misjudging a reverse sweep and gloving Nauman Ali to Imam-ul-Haq at forward short-leg, with Aleem Dar forced to overturn his original not out decision following a review.

Khawaja's contribution, along with half-centuries from David Warner (68) and Marnus Labuschagne (69 not out), took the tourists to 271-2 – trailing by 205 runs when bad light stopped play.

"It's disappointing," Khawaja said of his failure to reach three figures. "Cricket is a funny game. Three runs – you bat so well for 97 and then you get out. You don't get a hundred, you come back in the changing room and it probably feels worse than getting a 20 in some respects.

"It's a bizarre feeling. Yeah, I would love to get a hundred out here. Rawalpindi, Islamabad – where I grew up.

"I think it would have brought a lot of joy. But at the same time, I think mum, dad, Rachel, my wife, would have loved me being out there.

"I was having a lot of fun. I was enjoying playing. To put it in perspective, I wasn't even in an Australian team a few months ago. So I'm very grateful to be here. I'm happy that I contributed to the team."

Khawaja made his return to the Australia side for the first time since 2019 for the fourth Test of the Ashes in January and scored a century in each innings in a man-of-the-match performance.

And after backing up that display with another of high quality and some fortune – twice Pakistan dropped potential catches of Khawaja – he added: "I felt really good today.

"I felt mentally in a really good spot coming into it, I guess. Probably because I've been out of the system. I've been out of Cricket Australia for two years. And now it's not the be-all and end-all anymore.

"I've been in and out of the team so much. I've been dropped. It doesn't matter. I just play the way I want to play. I just think of it as if I'm playing club cricket or Shield cricket back home. And that's how I take it for Australia now.

"Obviously, I'm a Muslim. I believe in God. I trust what happens. Good or bad, you have to take it equally. A lot of good things have happened in my life. Sometimes you want certain things to go a certain way and they don't happen. I think you just have to accept that and move on, and take the good with the bad. I'm very grateful."