The basic principle regarding the matter is the saying of the Prophet, peace be upon him: “Whoever sleeps through a prayer or forgets it, let him perform it when he remembers it, for there is no expiation for it other than that.”
The Hanafis and the Hanbalis consider the order of prayers to be nullified by forgetfulness.
Fatwa by Dr. Khālid Naṣr