Your friend made a mistake by telling the one who came to propose marriage to you about your previous relationship from which you have repented. What she did is not good and is not in accordance with sharee'ah, nor is it wise. The Muslim is enjoined to conceal his brother's faults if he sees him committing sin in secret, so how about a sin from which the person has repented?!
What she did is not naseehah (sincerity or sincere advice) which is enjoined by sharee'ah on the one who is asked about a person with a view to marriage because that has to do with what he knows of the characteristics that are present at the time of asking, and it is not permissible for anyone to mention a bad past from which the person has repented.
What we understand from your words is that your friend told your husband of your previous relationship before he proposed to you. This indicates that he has forgiven you for that because he knows that you have repented and become righteous.
He did right by doing so, for there is no one who does not make some mistakes, but if he repents from them, he cannot be blamed or punished. The Messenger (peace and blessings of Allaah be upon him) said: The one who repents from sin is like one who did not sin at all. Narrated by Ibn Maajah, 4250; classed as hasan by al-Albaani in Saheeh Ibn Maajah.
What you should do is avoid bringing this subject up with your husband, but if he brings it up you should tell him that it was a passing relationship and one of the tricks of the Shaytaan, but you regret it, and Allaah has guided you and enabled you to repent.
Do not worry about this past so long as you have indeed repented and become righteous. Ask Allaah for strength and guidance and to accept your repentance.
And verily, I am indeed forgiving to him who repents, believes (in My Oneness, and associates none in worship with Me) and does righteous good deeds, and then remains constant in doing them (till his death)
Allaah says: Every son of Adam is prone to err, and the best of those who err are those who repent. Narrated by al-Tirmidhi, 2499; classed as hasan by al-Albaani in Saheeh al-Tirmidhi.
We ask Allaah to bless you and bring you both together in goodness.
And Allaah is the Source of Strength.
Reproduced from Islam QA