Across comparable stats, Mohammad Nabi leads 20–3.
Test
| Mohammad Nabi | Stat | Dirk Viljoen |
|---|---|---|
| 3 | Matches | 2 |
| 6 | Innings | 4 |
| 33 | Runs | 57 |
| 5.50 | Average | 14.25 |
| 48.52 | Strike rate | 32.75 |
| 24 | Highest | 38 |
| 0 | Hundreds | 0 |
| 0 | Fifties | 0 |
| 4 | Fours | 6 |
| 1 | Sixes | 0 |
| 8 | Wickets | 1 |
| 31.75 | Bowling average | 65.00 |
| 2.79 | Economy | 3.71 |
| 3/36 | Best bowling | 1/14 |
| 0 | 5 wickets | 0 |
ODI
| Mohammad Nabi | Stat | Dirk Viljoen |
|---|---|---|
| 181 | Matches | 53 |
| 157 | Innings | 43 |
| 3801 | Runs | 512 |
| 27.34 | Average | 14.22 |
| 88.06 | Strike rate | 61.91 |
| 136 | Highest | 63* |
| 2 | Hundreds | 0 |
| 18 | Fifties | 2 |
| 246 | Fours | 26 |
| 122 | Sixes | 5 |
| 181 | Wickets | 44 |
| 32.61 | Bowling average | 37.25 |
| 4.31 | Economy | 4.73 |
| 5/17 | Best bowling | 3/20 |
| 4 | 5 wickets | 0 |
T20I
| Mohammad Nabi | Stat | Dirk Viljoen |
|---|---|---|
| 155 | Matches | - |
| 143 | Innings | - |
| 2509 | Runs | - |
| 22.20 | Average | - |
| 135.98 | Strike rate | - |
| 89 | Highest | - |
| 0 | Hundreds | - |
| 7 | Fifties | - |
| 172 | Fours | - |
| 127 | Sixes | - |
| 111 | Wickets | - |
| 28.18 | Bowling average | - |
| 7.43 | Economy | - |
| 4/7 | Best bowling | - |
| 4 | 5 wickets | - |