“We were working really hard and playing good cricket but not winning, so it’s really good.”

Australian skipper Michael Clarke heaped praise on Pakistan, saying they had “played outstanding cricket in both Tests”.

“And we have been outplayed, unfortunately,” he said. “It’s been the track record of Australian cricket (in Asia) for a long time, unfortunately.”

It was Australia’s sixth Test defeat in a row in Asia after they lost 4-0 in India early last year.

Pakistan had to fight hard in the morning session as Steven Smith defied Pakistan during his resolute knock of 97, but once Smith departed, leg-before by Shah, Australia lost their last four wickets for the addition of just eight runs.

Smith added an invaluable 107 for the fifth wicket with Mitchell Marsh, who fell after scoring 47.

Smith missed a sharp turner from Shah who also bolwed Mitchell Johnson and Mitchell Starc to finish with 12 wickets in the series.

Babar had Nathan Lyon caught for his second fifth wicket haul, following up his first in the first Test in Dubai.

Babar finished with 14 wickets in the series as Pakistan did not miss ace spinner Saeed Ajmal’s absence who is suspended due to illegal bowling action.

Before lunch Smith batted resolutely, using his feet against the spinners during his 204-ball knock and hitting a dozen boundaries.

Smith reached his eighth Test fifty with two boundaries off spinner Babar, who failed to add to his three wickets on Sunday.

Marsh, who top-scored with 87 in Australia’s first innings, played Pakistan’s pace-cum spin attack confidently and he and Smith added 55 runs in the first hour.

But Mohammad Hafeez provided the breakthrough when he had Marsh caught by Asad Shafiq off an uppish flick. His 130-ball innings included six boundaries.

Hafeez finished with 2-38.

The win is also special for skipper Misbah who equalled the most wins record by a Pakistani captain with 14. Imran Khan and Javed Miandad also won 14 Tests as captains.

Misbah, declared man-of-the-match, set the world record for the fastest half-century and equalled the feat of fastest century in all Test cricket during his 101 not out on Sunday, capping a memorable Test match.

Younis Khan was named man of the series for his 468 runs in two Tests.