All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
You are not sinful for what you did by mistake and you are not required to do anything because of it, as Allaah Says (what means): {And there is no blame upon you for that in which you have erred but [only for] what your hearts intended.}[Quran 33:5]
The Prophet also said: "Allaah has forgiven my nation for things they forget, or do by mistake, or which they are forced to do." [Ibn Maajah]
Allaah Knows best.