Yasir began the Abu Dhabi Test with 195 wickets in 32 Tests and on the opening day grabbed three early wickets but BJ Watling resisted with 77 not out, leaving him having to complete his landmark in the second innings.
The victory gave New Zealand a 2-1 series win after they had taken the first Test by a narrow four-run margin at the same venue.
It was New Zealand s first away series win against Pakistan since their 1-0 win in Pakistan in 1969. "We know how formidable Pakistan are, certainly in their backyard they're a very hard side to beat".
Yasir's strike left New Zealand fighting to save both the match in Abu Dhabi, and the series - now tied at 1-1 - as they reached 112-4 at lunch on the fourth day.
Pakistan bounced back with an innings and 16-run win in the second Test in Dubai.
Phillies acquire Segura, Nicasio and Pazos from Mariners
The Seattle Mariners are continuing to trade away veteran players, with shortstop Jean Segura being the latest to be moved. Crawford, the 13th pick in the 2013 Major League Baseball draft, played 49 games for the Phillies past year .
The pair's 201-run partnership for the fourth wicket ended when Azhar became off-spinner Somerville's first test victim.
In the chase, Babar Azam top-scored with 51 off 114 balls before he was the ninth man to be dismissed as Pakistan's top order succumbed to New Zealand's brilliant bowling.
Ajaz Patel then got in on the fun, ending the resistance of Imam ul-Haq with a classic off-spinners wicket, getting ul-Haq to push forward, catching the inside edge, and offering a simple catch to Nicholls at short leg.
"For those guys to come over here and show their experience and perform the way they did was massive for us getting across the line".
This time there was more turn and bounce, helped by Somerville's height and flight as catchers circled and he lived the spin bowler's dream of trying to bowl his side to victory on day five.