Ross Taylor finished his Test career with the winning wicket as New Zealand drew the series with Bangladesh by an innings and 117 runs.
With his part-time off-spin, Taylor claimed his third Test wicket to dismiss Ebadat Hossain and seal victory in the second Test in Christchurch.
After the tourists’ shock victory over the world champions in the first Test, the two-match series is now tied at 1-1.
“It’s a great way to finish,” said Taylor, 37.
“I wanted to finish with a win and the guys definitely gave it to me.”It was an emotional game for me and my family.”
Taylor ended his 112-match Test career as New Zealand’s leading run-scorer with 7,683 runs at an average of 44.66, including 19 hundreds.
Between January and April, he will play six one-day internationals for the Black Caps against Australia and the Netherlands.
On his way to the pitch on day two, Bangladesh gave Taylor a guard of honour as he walked to the crease for what turned out to be his final Test innings, in which he hit 28 as the hosts posted 521-6 declared.