Is it ok to gamble and give away the money?

Asked by Reader on Jan 03, 2026 Topic: Work & Finances

Dear Hadi,

The question is, is it okay to gamble and give all the money to charity, keeping in mind that I know gambling is haram but my intention is to help the poor?

Dear Reader,

We suspect that you already know the answer to your own question, but we will give our opinion in any case, in the hope that it may be beneficial to our readers to see a full argument, with the caveat that this is not a fatwa, but just our opinion, and that Allah SWT knows best.

In Islam, gambling (known as maysir or qimār) is categorically prohibited, and this prohibition remains in force even if a person intends to give all the money obtained through gambling to the poor. The Qur’an explicitly forbids gambling by name, leaving no room for conditional permissions based on intention or outcome. Allah says: “O you who believe! Intoxicants, gambling, sacrificing to stones, and divining arrows are but defilement from the work of Satan, so avoid it that you may be successful. Satan only wants to cause between you animosity and hatred through intoxicants and gambling, and to turn you away from the remembrance of Allah and from prayer. So will you not desist?” (Qur’an 5:90–91). In these verses, gambling is described as an act inspired by Satan, and believers are commanded to avoid it entirely. The prohibition is intrinsic to the act itself, meaning that no later charitable intention can transform it into something permissible.

The Qur’an also establishes a broader moral principle that good ends do not justify forbidden means. Allah states, “Say: The evil and the good are not equal, even if the abundance of evil pleases you” (Qur’an 5:100). This verse underlines a foundational Islamic ethic: what Allah has declared haram remains haram regardless of the benefits one hopes to achieve through it. Consequently, giving charity does not purify wealth acquired through sinful means, nor does it convert a prohibited action into an act of obedience.

This principle is further reinforced by the teachings of the Prophet Muhammad PBUH regarding charity and lawful earnings. He said, “Allah is Good and accepts only what is good” (Sahih Muslim). The Prophet then described a man who makes supplication to Allah while his food, drink, and clothing are all from haram sources, and he asked rhetorically how such a person’s supplication could be accepted. From this hadith, scholars derive the clear rule that charity given from unlawful wealth earns no spiritual reward, even if the poor materially benefit from it. Therefore, donating gambling winnings does not make the act pleasing to Allah.

The Prophet PBUH also directly addressed gambling in a hadith that further clarifies this issue. He said, “Whoever says to his companion, ‘Come, let us gamble,’ must give charity” (Sahih al-Bukhari and Sahih Muslim). This statement shows that merely inviting someone to gamble is sinful and requires charity as a form of expiation, not as a justification. If gambling were acceptable when intended for charitable purposes, this hadith would be meaningless. Instead, it demonstrates that charity functions as a penalty for the sin, not as a means of legitimizing it.

Additionally, gambling involves the unjust consumption of wealth, which the Qur’an strictly forbids. Allah says, “Do not consume one another’s wealth unjustly” (Qur’an 2:188), and He also states regarding gambling, “In them is great sin, and some benefit for people. But their sin is greater than their benefit” (Qur’an 2:219). Even if one participant intends to donate his winnings, the transaction itself remains based on chance and loss without fair exchange, causing harm to others. Islam does not allow the alleviation of poverty through systems rooted in injustice or exploitation. Gambling fosters addiction, financial ruin, and family breakdown, and it normalizes irresponsible behavior with money. Islamic charity, by contrast, is meant to arise from ethical, stable, and lawful economic activity, not from practices that undermine individual and social well-being.

Underlying all of these teachings is a well-established legal and ethical principle in Islamic jurisprudence: Allah does not accept obedience that is achieved through disobedience. A believer cannot disobey Allah in order to seek closeness to Him, nor can a sinful path be used to pursue a virtuous goal. For this reason, Islam emphasizes lawful earning as the foundation of acceptable charity. Allah commands, “O you who believe! Spend from the good things which you have earned” (Qur’an 2:267), making it clear that only halal income is suitable for acts of worship and generosity.

In conclusion, gambling remains haram in Islam even if all of its proceeds are given to the poor because Allah has explicitly forbidden it, good intentions do not override divine commands, charity from haram wealth is not accepted, and gambling inherently involves injustice and harm. Islam rejects an “ends justify the means” approach to morality and insists that obedience to Allah must be preserved in both the goal and the method. True charity in Islam is rooted in lawful earning and sincere submission to Allah’s guidance, for Allah is not worshipped through acts of disobedience.                   

In peace.