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. We ask Allaah to exalt his mention as well as that of his family and all his companions.
Dear sister, may Allaah bless you and make you steadfast on His religion. We appreciate your adherent to this religion.
As you know the honor and chastity of a Muslim woman is the most precious matter, she cannot take it for granted. Islam aims to guard the honor and lineage of people and keep the society chaste and pure. So, it is strictly forbidden in Islam to mix with the opposite sex or to have any personal relations. We have already made it clear in Fataawa: 82299 and 89567.
So, you have to turn towards Allaah, the Glorified and the Exalted, in sincere repentance and should ask forgiveness from your husband. Tell him that it was an unintentional mistake and you will not repeat it again.
This is a mistake that could be ignored and your husband should forgive you, respecting your apology. This mistake should not be a reason to ruin your married life.
Allaah knows best.