Chapter on the Prayer Times (Mawaqit)
Tahdhīb al-Aḥkām|Volume 2|Book 1|Chapter 13
الحسين بن سعيد عن القاسم بن عروة عن عبيد بن زرارة عن أبيه عن أبي جعفر عليه السلام قال إذا فاتتك صلاة فذكرتها في وقت اخرى فان كنت تعلم أنك إذا صليت التي قد فاتتك كنت من الاخرى في وقت فابدأ بالتي فاتتك فان الله عزوجل يقول وأقم الصلاة لذكري وإن كنت تعلم إذا صليت التي فاتتك فاتتك التي بعدها فابدأ بالتي انت في وقتها وأقم الاخرى
Al-Husayn ibn Sa'id narrated from Al-Qasim ibn Urwah from Ubayd ibn Zurarah from his father:
Abu Ja'far, peace be upon him, said: "If a prayer passes you by and you remember it during the time of another prayer, then if you know that by praying the one that you missed you will still have time to perform the current one within its time, begin with the one you missed, for Allah سبحانه وتعالى, the Mighty and Majestic, says: “And establish the prayer for My remembrance” (Surah Taha 20:14). But if you know that by praying the one you missed you will miss the current prayer, then begin with the one whose time you are in, and then perform the one you missed afterward."
- Tahdhīb al-Aḥkām fī Sharḥ al-Muqniʿah, vol. 2, p. 288
- Ṣaḥīḥ al-Tahdhīb, p. 164