محمد بن يعقوب عن الحسين بن محمد عن عبد الله بن عامر عن علي بن مهزيار عن فضالة بن أيوب عن عبد الرحمن بن أبي عبد الله عن أبي عبد الله عليه السلام قال إذا صليت وأنت على غير القبلة واستبان لك انك صليت على غير القبلة وانت في وقت فأعد وان فاتك الوقت فلا تعد
Muhammad ibn Ya‘qub from al-Husayn ibn Muhammad from Abdullah ibn ‘Amir from Ali ibn Mahziyar from Fadalah ibn Ayyub from Abd al-Rahman ibn Abi Abdillah:
Abu Abdillah عليه السلام said: "If you prayed while not facing the Qiblah, and it becomes clear to you that you prayed not facing the Qiblah while you are still within the time, then repeat it. But if the time has passed, then do not repeat it."
Ali Akbar al-Ghaffari
Tahdhīb al-Aḥkām fī Sharḥ al-Muqniʿah, vol. 2, p. 151