Chapter on the Qiblah (Direction of Prayer)
Tahdhīb al-Aḥkām|Volume 2|Book 1|Chapter 5
عَلِيُّ بْنُ مَهْزِيَارَ عَنْ فَضَالَةَ بْنِ أَيُّوبَ عَنْ عَبْدِ اَلرَّحْمَنِ بْنِ أَبِي عَبْدِ اَللَّهِ عَنْ أَبِي عَبْدِ اَللَّهِ عَلَيْهِ اَلسَّلاَمُ قَالَ:« إِذَا صَلَّيْتَ وَ أَنْتَ عَلَى غَيْرِ اَلْقِبْلَةِ وَ اِسْتَبَانَ لَكَ أَنَّكَ صَلَّيْتَ وَ أَنْتَ عَلَى غَيْرِ اَلْقِبْلَةِ وَ أَنْتَ فِي وَقْتٍ فَأَعِدْ وَ إِنْ فَاتَكَ اَلْوَقْتُ فَلاَ تُعِدْ»
Narrated by Ali ibn Mahzyar from Fadalah ibn Ayyub from Abd al-Rahman ibn Abi Abdillah
Abu Abdillah عليه السلام said: "If you pray while not facing the qiblah, and it becomes clear to you that you prayed not facing the qiblah while still within the time (of that prayer), then repeat it. But if the time has passed, then do not repeat it."
- Tahdhīb al-Aḥkām fī Sharḥ al-Muqniʿah, vol. 2, p. 50
- Ṣaḥīḥ al-Tahdhīb, p. 167