Sahih al-Bukhari 6665
Uthman bin Haitham narrated to us, or Muhammad (bin Yahya) told us. Muhammad narrated from Ibn Juraij. He said: I heard Ibn Shihab. He used to say: Isa bin Talhah narrated to me that Hazrat Abdullah bin Amr bin As (ra) told him that the Prophet (saw) was addressing the people on the Day of Sacrifice (the tenth of Dhul Hijjah) when a man got up, came to him (saw) and said: “O Messenger of Allah (saw), I thought that such-and-such a rite should be done before such-and-such a rite.” Then another man got up and, naming three of these rites, said: “O Messenger of Allah (saw), I thought thus and thus.” So on that day the Prophet (saw) said about all those rites: “Do it now; there is no harm.” And on that day he (saw) was not asked about anything but he (saw) said this very thing: “Do it now; there is no harm.”
AI-translated by Islam-Today
Book 15: If someone does something against his oath due to forgetfulness