And from him, from ‘Abbad bin Sulayman, from Sa‘d bin Sa‘d, from Safwan:
Abu al-Hasan عليه السلام, peace be upon him, said: "If you do not know how many rak‘ahs you have prayed, and your assumption does not settle upon anything, then repeat the prayer."
Ali Akbar al-Ghaffari
Tahdhīb al-Aḥkām fī Sharḥ al-Muqniʿah, vol. 2, p. 198