Sahih al-Bukhari 6671
Ishaq bin Ibrahim narrated to us that he heard Abdul Aziz bin Abdus Samad. Mansur (bin Mu'tamir) narrated to us. Mansur narrated from Ibrahim (Nakha'i), Ibrahim from Alqamah, Alqamah from Hazrat Ibn Mas'ud (ra), that the Prophet (saw) of Allah (saw) led them in the Zuhr Prayer (Salat), and he (saw) prayed more or less. Mansur said: I do not know whether it was Ibrahim who had this doubt or Alqamah. (Hazrat Ibn Mas'ud (ra)) said: It was said to him (saw): “O Messenger of Allah (saw), has the Prayer been shortened, or have you forgotten?” He (saw) said: “What is the matter?” The people said: “You have prayed so many units (Rak'at).” He used to say: He (saw) led them in two more prostrations. Then he (saw) said: “These two prostrations are for the one who does not know whether he has prayed more or less in his Prayer. Let him think carefully and find out what is correct. (Then, if he has prayed less,) let him complete what remains, then make two prostrations.”
AI-translated by Islam-Today
Book 15: If someone does something against his oath due to forgetfulness