I began praying only when I was 25. I wonder whether I must pray all the prayers I missed since I was 10, or since the time when prayer became obligatory to me. When we do not fast in Ramadhan because of ill health or travel, we compensate by fasting a similar number of days later. Does the same apply to prayer?
Many scholars advise that offering such missed prayers is necessary. They also recommend that every time you offer an obligatory prayer, you add a similar prayer in compensation. Thus, with every Fajr prayer, you offer one missed Fajr prayer, and with every Dhuhr, a missed Dhuhr prayer. Since you missed about 11 years, then you carry this on for 11 or 12 years and you would have completed all that you had missed.
However, other scholars take a totally different view, based on the fact that prayer is a time-related duty. When you have missed a prayer for no valid reason, you have missed it forever, and you cannot compensate for it in anyway. Its time has lapsed and you cannot recover it. The valid reasons are loss of consciousness, including sleep, and forgetfulness.
The Prophet, peace be upon him, says: “Whoever sleeps through the time of his prayer, or forgets it, must offer it when he becomes aware of it; for this is its time.”
Note how the Prophet, peace be upon him, relates the offering of such missed prayer to a new time range. The missed prayer should be offered immediately, because its time has now started and it lapses soon. Thus, when one wakes up and realizes that he has missed his prayer, he should proceed immediately to have his ablutions and start his prayer. He should not allow anything to distract him from his prayer. To my mind, this view is more valid and carries more weight.
What to do about prayers missed over a long period of time? Well, the idea of one compensatory prayer with every new prayer may sound fine, but then it may well be insufficient. How about a person who starts praying at the age of 50, having missed 36 or 37 years of prayers. He may live another 37 years but he is very likely to die before he completes his prayers. What happens then? Scholars who advance this view say that God is certain to forgive him the remainder because he has proven his intention to offer his missed prayers. Well, since God forgives prayers missed for a year or two, He also forgives them when missed for 40 or 50 years, when the person concerned has made a firm resolve not to miss his prayers again.
This is the key issue. When one has missed his prayers for many years, he must firmly resolve to be more mindful of his prayers, offering them on time, and must declare his repentance. If his repentance is sincere, and he fulfills his new resolution to pray regularly, then God may very well forgive him all the prayers he had missed.