If any shortcoming is found in the obligatory Salat, the Glorious and Exalted Rubb (Allah) will command to see whether His slave has offered any voluntary Salat so that the obligatory Salat may be made up by it.
Then the rest of his actions will be treated in the same manner."
[At- Tirmidhi].