Rauf injured his right quad while fielding on the first day of the first Test in Rawalpindi and did not bowl during England's second innings as the visitors won by 74 runs.
Shami recently participated in India's campaign in ICC T20 World Cup, in which the Men in Blue earned a semifinal finish. In six matches, he took six wickets at an average of 23.83 at an economy rate of 7.15, with best bowling figures of 2/14.
Tamim sustained the injury on Wednesday during a warm-up match at the same site. Taskin Ahmed, the fast bowler, was ruled out of the first ODI due to a back ailment earlier on Thursday.