Answered by Ustadh Tabraze Azam
Question: I was in love with a girl and we used to talk on phone. In the final semester of my school, I fell short of my attendance and my professor didn’t agree to clear my attendance. So I said to Allah, “O Allah, please bring me out of this problem and I promise that I will stop talking to that girl on phone until our marriage”. Allah responded to my prayer and my problem was solved.And we stopped talking for few days. But soon after that we started talking again.Time has passed on and I have sincerely repented to Allah for breaking my promise. My question is that do I have to pay any expiation to compensate for the breaking of that promise or is the repentance is enough?
Answer: Assalamu alaikum wa rahmatullahi wa barakatuh,
I pray this finds you in the best of health and faith, insha’Allah.
The ruling of “promising to Allah” is that it is considered a promise, nothing more.
In any case, it is important to note that what is considered is a verbal utterance of a phrase. An internal  promise (wa`d),  vow (nadhr) or,  oath (yamin) is of no legal implication.
The Expiation for Breaking an Oath (yamin)
In any case, the expiation (kaffara) for breaking an oath (yamin) is to [a] feed ten poor people (two meals each) or, [b] to clothe them (one garment each) or, [c] to give them the equivalent monetary value. If one is unable to do that, one must fast three consecutive days.
[Nahlawi, al-Durar al-Mubaha]
Please also see:
And Allah knows best and He alone gives success.
Checked & Approved by Faraz A. Khan