how important is "intent" in islam?
Hi Snakelegs.
Intention means almost
everything in Islam.
It is narrated on the authority of Amirul Mu'minin, Abu Hafs 'Umar bin al-Khattab, radiyallahu 'anhu, who said: I heard the Messenger of Allah, sallallahu 'alayhi wasallam, say:
"Actions are (judged) by motives (niyyah), so each man will have what he intended. Thus, he whose migration (hijrah) was to Allah and His Messenger, his migration is to Allah and His Messenger; but he whose migration was for some worldly thing he might gain, or for a wife he might marry, his migration is to that for which he migrated."
[Al-Bukhari & Muslim]
In the example in the hadith, the person who migrated for the sake of Allah swt will be rewarded by Allah swt, but the guy who migrated for worldly thing has no reward.
Another example, a person who gives in charity to please Allah swt will be rewarded by Allah swt, but the person how gives in charity for showing off will not be rewarded, he might even be record as a sin.
a question was asked about the music in video games and was told that since his intent was not to listen to the music, but to play the game - it was ok.
That is being way to lenient! The person should mute it if it has music, especially because there is no greater good that needs to be served, he is just playing a game!
is it ok for a male doctor to treat women patients, since the intent is to heal?
No, unless there is a serious need. Why should men treat women when the women can go to a female doctor? If it happens that a man is sick and the only person who can treat him is a female, then in cases like this, i.e. cases of extreme necessity, it is permissible. And I say extreme because not wanting to drive another 10 minutes to get to another doctor is not a valid excuse (unless of course the person will die before they get there or something extreme like that).
how much can you extrapolate from the comment about the role of intent in the video game case - do you follow common sense or is it clearly spelled out somewhere when it applies and when it doesn't?
It is not permissible for a person to sin, even if he has good intentions, unless it is a case of extreme necessity, or there is no other option, or doing anything else will be a greater evil (such as if a male doctor refuses to treat a female who is about to die- what is the greater evil? The doctor helping her or letting her die? Of course letting her die is a greater evil so he must help her).
And even then, the person should hate the sin that he is committing and enjoying it will be a sin.
Obviously playing video games does not fall under these categories.

laying: