Oaths are of three types:
1 – A binding oath. This is an oath which a person means and is sure about, referring to something in the future which he resolves to do or not do. The ruling on this is that expiation is obligatory if the oath is broken. Ibn Qudaamah (may Allaah have mercy on him) said: “Whoever swears to do something and he does not do it, or he swears not to do something and he does it, must offer expiation.” There is no difference of opinion concerning this matter among the fuqaha’. Ibn ‘Abd al-Barr said: The vow for which expiation is due, according to the consensus of the Muslims, is that concerning actions in the future. Al-Mughni, 9/390.
2 – Unintentional oaths. This refers to swearing when there was no intention of making an oath. No expiation is due on such oaths, because Allaah says (interpretation of the meaning):
“Allaah will not call you to account for that which is unintentional in your oaths, but He will call you to account for that which your hearts have earned. And Allaah is Oft-Forgiving, Most-Forbearing”
‘Aa’ishah (may Allaah be pleased with her) said: This verse, ‘Allaah will not call you to account for that which is unintentional in your oaths’, was revealed concerning saying, “No, by Allaah’ and “Yes, by Allaah.” Narrated by al-Bukhaari, 4613.
Whoever swears to something thinking that it is as he has sworn it to be, then finds out that it is otherwise, does not have to offer expiation according to the majority of scholars. This comes under the heading of unintentional oaths.
Ibn Qudaamah (may Allaah have mercy on him) said: Whoever swears to something thinking that it is as he has sworn it to be, when that is not the case, does not have to offer expiation, because this is a kind of unintentional oath. Most of the scholars are of the view that no expiation is required for this kind of oath. Ibn al-Mundhir said: This was narrated from Ibn ‘Abbaas, Abu Hurayrah, Abu Maalik, Zuraarah ibn Awfa, al-Hasan, al-Nakha’i, Maalik, Abu Haneefah and al-Thawri.
Those who said that this is an unintentional oath were: Mujaahid, Sulaymaan ibn Yasaar, al-Awzaa’i, al-Thawri and Abu Haneefah and his companions.
Most of the scholars are of the view that no expiation is required for an unintentional oath. Ibn ‘Abd al-Barr said: the Muslims are unanimously agreed on that.
That is because Allaah says (interpretation of the meaning): “Allaah will not call you to account for that which is unintentional in your oaths” [al-Baqarah 2:225]. This comes under that heading, because he did not intend to give a wrong impression, so it is as if he broke the oath by mistake.
From al-Mughni, 9/393
3 – Swearing falsely concerning something that is in the past. This is a major sin, and there is no expiation for it according to the majority of scholars because it is too serious to be expiated.
If this is understood, then the oaths that you swore were binding oaths that you broke, so you have to offer expiation.
If you have forgotten how many oaths there were, then do your best to remember and offer expiation based on what you think is most likely to be the case, then you will have absolved yourself.
Whatever of these oaths had to do with doing a certain action, or refraining from a certain action, only one expiation is required in each case. For example, if you swore that you would not speak to So and so, then you broke that oath and did not offer expiation, then you swore again not to speak to him, and you broke the oath again, you only have to offer expiation once. This is different from the case if you had sworn not to speak to him, then you swore not to eat his food, for example. In that case you would have to offer expiation twice. We have already discussed this in detail in the answer to question no. 34730.
And Allaah knows best.
To sum up: With regard to the oaths that you swore to do something or not to do something in the future, and you broke them, you have to offer expiation for them.
With regard to oaths that you swore falsely saying that you did something in the past or did not do it, and you were lying, there is no expiation to be offered, but you have to repent to Allaah, and Allaah accepts the repentance of those who repent. May Allaah help you and forgive your sin.