It doesn’t break the fast, however it nullifies his reward. And this is like backbiting and tale-carrying and impermissible speech and swearing and insulting and other than that from the diseases of the tongue. Likewise the sight, he doesn’t look at what Allāh has made forbidden to look at. He refrains or lowers his gaze on what Allāh has made forbidden regardless if it’s seeing it in person or through the television screens or computer monitors that display the Fitan. So he lowers his gaze from what is displayed from the television screens or computer monitors from the Fitan of women or the pictures of the women in the newspapers that portray the physical beauty of the women. He doesn’t look at it because affects his fasting. Likewise the listening to the impermissible, he doesn’t listen to music and musical instruments and to swearing and insults. He doesn’t listen to this, to the extent that if someone swore at him or insulted him, he doesn’t respond to him. He (ﷺ) said, “If someone swears at him, then let him say, Verily I’m fasting. Verily I’m fasting.” And he refrains from responding to the one who swears at him to the one who insults him fulfilling his fast. So he refrains his hearing from what Allāh has prohibited him from listening to. So if he doesn’t refrain from these things, he loses the reward of fasting and his fasting will have no reward. He (ﷺ) said, “It may be that a fasting person attains nothing but hunger and thirst from his fasting." Who is this? This is the one who doesn’t refrain from the impermissible in regards to speech, actions, sight, and hearing and other than that. He said, "Whoever does not abandon falsehood in speech and action, then Allah has no need that he should leave off his food and drink."
So let us reflect O slaves of Allāh, a person might abandon food and drink and all the things that break the fast, however he doesn’t abandon these things, because someone who transgressed upon him or hearing about it and it harms his fast and he loses his reward.
So lets have Taqwa of Allāh in regards to our fasting and let us preserve it.