The one-off Test, which will commence on September 5, will not be a part of ICC World Test Championship.
The 19-year-old Afridi returned career-best figures of six for 35 and became youngest player to take a five-wicket haul in World Cup.
Subtract the success of Shakib and Mustafizur and Bangladesh would have been deflated.
Friday's result means that New Zealand have joined India, Australia and hosts England in the knockout stage.
Teenager Shaheen Afridi took six wickets as Pakistan won the game easily to finish level on 11 points and games won (five) with fourth-placed New Zealand.
Helped to 314 by Rohit Sharma's 104, India won by 28 runs in Birmingham on Tuesday.
India stumbled after an opening stand of 180, with Mustafizur claiming five wickets.
Shkaib starred with the bat and ball as Bangladesh, chasing 322, beat West Indies by seven wickets.
Bangladesh captain Mashrafe Mortaza won the toss and elected to bowl first in Monday’s World Cup match against the West Indies at Taunton. Mashrafe admitted he was hoping to take advantage of a pitch that might help his bowlers early on. @Twitter/ Windies Cricket West Indies opener Chris Gayle was on familiar turf at Taunton,...
Evin Lewis (70), Shimron Hetmyer (50) and Jason Holder (30) also played fine innings.