World Cup 2019: "We had belief in our death bowling" - Kedar Jadhav
Mohammad Nabi's 52 had Afghanistan eyeing the greatest-ever World Cup upset, only for Shami to send him packing - then clean bowl Aftab Alam and Mujeeb Ur Rahman in the next two balls.
Shami's four for 40 and Jasprit Bumrah's two for 39 delivered a bowling master-class to allow India to defend their 224 for eight from their full 50 overs.
Bumrah's two wickets in three balls turned the tie in India's favour, but at the death he was upstaged by Shami's ruthless finishing in a hugely-engaging contest.
India extended their unbeaten start to four wins from five matches.