If one has missed a prayer and wants to offer it in compensation, i.e. Qadha, should he offer both the obligatory part and the Sunnah, or only the obligatory part?
Prayer is a time-related duty, which means that when an obligatory prayer is missed, its time has lapsed and it cannot be offered unless there is a valid reason for missing it. The valid reason is being unconscious of it either through sleep or forgetfulness.
The Prophet, peace be upon him, says: “Whoever sleeps through a prayer or forgets it should offer it when he is conscious of it, because it is then that it is due.” This means that if you sleep through Fajr prayer despite having taken the necessary precautions to wake up, then you must offer it as soon as possible after waking up. This is not Qadha or compensatory prayer; it is offering it on time, as the Prophet, peace be upon him, says.
Qadha is supposed to compensate for missed prayer, but if a prayer is missed through negligence, it cannot be compensated for, because its time range has lapsed. The only way is to genuinely repent and resolve not to neglect prayers again. When you offer a missed prayer, you offer the obligatory part only, but the Sunnah of Fajr and the Witr prayers can be offered after the time has lapsed.