قال الشيخ رحمه الله فان نسي استقبال القبلة أو أخطأها ثم ذكرها أو عرفها ووقت الصلاة باق اعاد الصلاة وان كان الوقت قد مضى فلا اعادة عليه إلا أن تكون صلاته على السهو والخطأ الى استدبار القبلة فعليه اعادة الصلاة كان الوقت باقيا أو ماضيا
For what is meant by it is the permissibility of delaying the prayer from its time due to a circumstance, excuse, or necessity. As for performing it early, it is not permissible in any case. The Shaykh (Al-Mufid), may Allah سبحانه وتعالى support him, said: "If one forgets to face the Qiblah or errs in it, then remembers or becomes aware of it while the time for prayer remains, he must repeat the prayer. But if the time has passed, then there is no obligation to repeat it, unless his prayer, due to forgetfulness or mistake, was performed while facing away from the Qiblah (to the point of having his back to it); in that case, he must repeat the prayer whether the time remains or has passed."