Across comparable stats, Mohammad Hafeez leads 25–1.
Test
| Mohammad Hafeez | Stat | Dirk Viljoen |
|---|---|---|
| 55 | Matches | 2 |
| 105 | Innings | 4 |
| 3652 | Runs | 57 |
| 37.64 | Average | 14.25 |
| 56.01 | Strike rate | 32.75 |
| 224 | Highest | 38 |
| 10 | Hundreds | 0 |
| 12 | Fifties | 0 |
| 455 | Fours | 6 |
| 28 | Sixes | 0 |
| 53 | Wickets | 1 |
| 34.11 | Bowling average | 65.00 |
| 2.66 | Economy | 3.71 |
| 4/16 | Best bowling | 1/14 |
| 2 | 5 wickets | 0 |
ODI
| Mohammad Hafeez | Stat | Dirk Viljoen |
|---|---|---|
| 218 | Matches | 53 |
| 216 | Innings | 43 |
| 6614 | Runs | 512 |
| 32.90 | Average | 14.22 |
| 76.61 | Strike rate | 61.91 |
| 140* | Highest | 63* |
| 11 | Hundreds | 0 |
| 38 | Fifties | 2 |
| 664 | Fours | 26 |
| 110 | Sixes | 5 |
| 139 | Wickets | 44 |
| 38.84 | Bowling average | 37.25 |
| 4.18 | Economy | 4.73 |
| 4/41 | Best bowling | 3/20 |
| 1 | 5 wickets | 0 |
T20I
| Mohammad Hafeez | Stat | Dirk Viljoen |
|---|---|---|
| 119 | Matches | - |
| 108 | Innings | - |
| 2514 | Runs | - |
| 26.46 | Average | - |
| 122.03 | Strike rate | - |
| 99* | Highest | - |
| 0 | Hundreds | - |
| 14 | Fifties | - |
| 251 | Fours | - |
| 76 | Sixes | - |
| 61 | Wickets | - |
| 22.75 | Bowling average | - |
| 6.60 | Economy | - |
| 4/10 | Best bowling | - |
| 1 | 5 wickets | - |