Despite only setting a target of 135, a superb performance with the ball means Suliman Safi's side just did enough to progress from the Super League quarters.
Afghanistan grabbed 30 points after whitewashing Ireland 3-0 in the first series in January under the ODI Super League, which counts towards qualification for the 2023 World Cup.
Afghanistan lost their last match of the Super 12 stage of the ICC men's T20 World Cup against New Zealand, crashing India's hopes to qualify for the semifinals.
Senior Australian cricketers had indicated they would like to see the Test cancelled if the de facto ban on women's cricket remained in place.
Afghanistan, who have played four games in the Super 12 stage, are sitting at the second spot, with four points and a net-run rate of +1.481.
Hamid Hassan, who picked three wickets against Namibia last week, also pointed out how well Afghanistan batsmen have performed in the ongoing T20 World Cup.
The 33-year-old finished his career having played 114 ODI matches, scoring 2,424 runs with a century and 12 half-centuries. He also scored 440 runs in six Test matches.
Afghanistan gave a befitting farewell to the former captain as they notched up a convincing 62-run over Namibia to keep their semifinal hopes alive in the tournament.
On Friday, Asif Ali smoked four sixes in an over to help Pakistan make it a hat-trick of Super 12 victories as they handed Afghanistan their first defeat of the tournament in Group 2.
Asghar Afghan is playing his last match for Afghanistan as he has announced his retirement from all forms of cricket on Saturday.
The Afghanistan Cricket Board announced the 33-year-old former captain and right-handed batsman's retirement on its Twitter handle on Saturday.
Defending a tricky 148, Afghanistan brought in the star leg-spinner only in the 11th over with Pakistan needing 76 runs from 60 balls.
Not many would have expected a near stampede situation as groups of Afghanistan fans tried to get into the Dubai International Cricket Stadium without tickets.
Afghanistan strolled to a 130-run victory over Scotland in their opening match of Group 2 in T20 World Cup 2021 on Monday.
Notwithstanding their controversial build-up, Afghanistan have shown what they are capable of in the two-warm ups that they played in the lead up to the tournament.