Pakistan beat Bangladesh by five wickets in the third T20I after Mohammed Nawaz hit a boundary from the last ball to complete a 3-0 T20I series victory.
A slow approach meant Pakistan needed eight runs off the final six balls after Bangladesh scored 124-7.
Pakistan's second-wicket partnership for the day was 51 runs between Haider and Mohammad Rizwan.
Shohidul Islam picked up his first wicket by removing Rizwan for 40 on his debut. While Haider appeared in full control, he hit 45 runs in 38 balls with three fours and two sixes before being dismissed.
During Mahmudullah's only over of the day, he dismissed Sarfaraz Ahmed and Haider Ali in consecutive deliveries before Iftikhar Ahmed hits a huge six off the fourth ball, denying him a hat-trick.
When two runs were needed off two balls, Iftikhar went for glory but was caught for six at backward point. Pakistan's new batsman Mohammad Nawaz then hit a four through extra cover to secure the win. Muhammadullah finished with 3-10 from a single over.
Dhani removed Najmul Hossain Shanto for five runs in his first over. Mohammad Naim scored 47 runs off 50 balls for the home team.
The first game was won by Pakistan by four wickets and the second game by eight wickets.