Wa alaikum salam
Sahih Al-Bukhari Hadith 1.1 Narrated by Umar bin Al Khattab
I heard Allah's Messenger (saws) saying, "The reward of deeds depends
upon the intentions and every person will get the reward according to
what he has intended.
Allah says in the Holy Quran Chapter 6 Surah Anaam verse 54:
When those come to you who believe in Our Signs, say: "Peace be on
you! Your Lord had inscribed for Himself (the rule of) Mercy. Verily
if any of you did evil in ignorance, and thereafter repented and
amended (his conduct), Lo! He is Oft-Forgiving, Most Merciful."
Allah says in the Holy Quran Chapter 3 Surah Ale Imraan verse 135-136:
Allah likes such good people very much, who, if ever they commit a
base deed or wrong their own soul by the commission of a sin, remember
Allah instantly, and ask for forgiveness from Him for their
shortcomings. For who, but Allah, can forgive sins? (And Allah loves
those) who do not knowingly persist in the wrongs they did. These will
be rewarded with forgiveness from Allah, and with Gardens beneath
which canals flow, and they will reside therein forever! How excellent
is the reward of those who do good deeds!
So there is no need ot worry just seek forgiveness of Allah on this matter as Allah says in quran and everything is ok.