The incident happened in the 52nd over when Australian pacer Peter Siddle got Ali to edge a delivery to third-man.
The first Test ended in a draw in Dubai last week.
Azhar Ali became the talk of the cricketing world - after being run out while chatting to his batting partner! The batsman slowly walked on the pitch to punch non-striker Shafiq's gloves as they thought that the ball would reach the boundary.
After putting Pakistan in a commanding position during the second Test against Australia, batsmen Azhar Ali and Asad Shafiq involved a comical run-out that will be remembered for ages in the history of gentlemen's game. But MS Dhoni, then the Indian skipper, had the presence of mind to feed the ball to short-leg fielder Abhinav Mukund, who broke the stumps.
The former England captain may have scored nearly 8,000 global runs and 18 Test centuries, but he says Abbas is the type of bowler that would make him "poop his pants".
Pakistan selectors once again left out fast bowler Mohammad Amir from the country's 15-member squad set to square off against Australia during the three-match Twenty20 series starting next week.
When the wickets were falling on another end, the Australian opener, Aaron Finch scored a decent knock of 39.
Still needing an unlikely 491 runs Australia will be pushing for a victory with Pakistan hoping to take the remaining nine wickets and wrap up the Test series. Pakistan started their second innings with the healthy lead of 137 runs but found themselves in a pressure after losing Hafeez for just 6.
On the day 3 of the second Test, top-order batsman Ali gave the internet users another reason to mock the national team for showing unforgivable negligence on the field. In the same innings, Azhar Ali got run-out in a freakish fashion.