What is the Islamic legal ruling on my work for a government company that sells charitable lottery tickets and distributes its profits to educational institutions, knowing that my work focuses on monitoring computer tasks related to the lottery and prize distribution?
Charitable lotteries are unlawful (haram) in Islamic law because they are based on gambling, which Allah Almighty has forbidden, saying: "O you who have believed, indeed, intoxicants, gambling, [sacrificing to] stone altars for idols and divining arrows are but defilement from the work of Satan, so avoid it that you may be successful." Spending its proceeds on charitable causes does not make it lawful, for the end does not justify the means. One who buys a lottery ticket buys it with the intention of profit, and this is the forbidden gambling (maysir). Allah Almighty has stated that the sin of gambling is greater than its benefit, saying: "They ask you about wine and gambling. Say, 'In them is great sin and [yet, some] benefits for people. But their sin is greater than their benefit.'" He also clarified that Satan intends thereby to cast animosity and hatred among you and to avert you from the remembrance of Allah and from prayer. Therefore, working in this field is forbidden in any form, because it is assisting in disobedience to Allah, and Allah has forbidden that, saying: "And cooperate in righteousness and piety, but do not cooperate in sin and aggression."
Summarized from the full answer at Ftawy · reviewed Sep 2, 2026
Read the full answer on Ftawyhttps://ftawy.com/en/questions/159031