أحمد بن محمد عن علي بن الحكم عن هشام بن سالم عن ابي عبد الله عليه السلام قال: قلت له الرجل يصبح لا ينوي الصوم فإذا تعالى النهار حدث له رأى في الصوم فقال: إن هو نوى الصوم قبل أن تزول الشمس حسب ل يومه وان نواه بعد الزوال حسب له من الوقت الذى نوى
Ahmad ibn Muhammad, from Ali ibn al-Hakam, from Hisham ibn Salim, from Abu Abdillah عليه السلام, peace be upon him, who said:
I (narrator) said to Imam عليه السلام: “A man enters the morning without intending the fast, then when the day rises, an opinion occurs to him regarding fasting.” Imam عليه السلام said: “If he intends the fast before the sun passes the meridian, his day is counted for him; And if he intends it after the sun has passed the meridian, it is counted for him from the time at which he intended.”
Ali Akbar al-Ghaffari
Tahdhīb al-Aḥkām fī Sharḥ al-Muqniʿah, vol. 4, p. 252