Stokes told his team-mates in the dressing room at Trent Bridge before the start of play.
The 35-year-old amassed 9,515 Test runs and another 9,831 in white-ball cricket across a 16-year career with the Black Caps.
More from us
Did you know you can manage your profile, and explore all of the available newsletters from Ireland Live within your account.