If a Muslim prays five times a day, recites Qur'an every day, and also fasts all days of Ramadan, but also has a relationship with a boy (she talks to him over the phone and also sometimes they get together or sometimes they shake hands or kiss), do these second set of acts cause the first set (prayers and fasting) to not be accepted?
Let us remember the acceptance of prayer if person drinks alcohol.
The fact that his prayers are not accepted does not mean that they are not valid, or that he should give up praying, rather it means that he will not be rewarded for them.
So the benefit of praying will be that he will have discharged his duty and will not be punished for not doing it.
Lets come back to the relationship of girl and boy.
The causes of zina include the following:
1 – Unveiling and wanton display by uncovering the face, hair or any part of the body. It was narrated in the hadeeth that the Prophet (peace and blessings of Allaah be upon him) said: “There are two types of the people of Hell whom I have not seen… Women who are clothed yet naked, who have gone astray and try to lead others astray also. Their heads look like the humps of camels, leaning to one side. They will never enter Paradise nor even smell its fragrance, although its fragrance may be detected from such and such a distance.” (Narrated by Imam Muslim, al-Libaas wa’l-Zeenah, 3971).
2 – Being alone with a man who is not a mahram for you, because the Messenger of Allaah (peace and blessings of Allaah be upon him) said: “No man should be alone with a (non-mahram) woman unless her mahram is present.” (Narrated by al-Bukhaari, 3842).
3 – Beware of mixing with those whom you are not permitted to mix with, for zina only happens as a result of that. You must pay attention to your conscience and do not pay attention to the whispers of the Shaytaan when he tries to make zina look attractive and to make this crime seem insignificant. The Shaytaan has sworn by Allaah’s Glory that he will mislead the sons of Adam. Allaah says (interpretation of the meaning):
You should not think that repentance is too difficult or feel that Allaah will never accept your repentance, for the Shaytaan is keen to sow the seeds of despair in your heart.
You should note that whoever repents, Allaah will accept his repentance and change his bad deeds into good deeds. Allaah says (interpretation of the meaning):
So girl should repent and cut off all the routes that may lead to evil, by means of the way prescribed in sharee’ah which Allaah has permitted, namely marriage. And she should not stop making prayer and other muslim actions. At least she will not be punished for not doing them.
And Allaah knows best.