Fatwa: # 40810
Category: Business Matters
Country: United States
Date: 6th September 2018


Working on gaming product



I am working for a software company which provides solutions to different clients such as state department, chemical and gaming industries. The company assigns me tasks based on timeline to the clients. My work is to write logic for applications and sometimes I work on gaming products which collects information of patrons solely for background checks and licensing. So, my question is it permissible to write this kind of software. 


In the Name of Allaah, the Most Gracious, the Most Merciful.

As-salāmu ‘alaykum wa-rahmatullāhi wa-barakātuh.


We apologize for our belated response.

Game logic refers to the internal mechanism of a game in order to perform all the tasks needed for it to work such as pressing a certain button will bring about a specific outcome[i].

If our understanding is correct, then the permissibility and impermissibility of writing game logic will depend on the content of the game. If it contains sinful elements and you have to write its logic, then it will not be permissible[ii].

For more details on the conditions for the permissibility of game programing refer to the following link http://islamqa.org/hanafi/askimam/80512

Collecting information for licensing and on patrons for back ground checks is permissible.


And Allaah Ta’aala Knows Best

Muhammed Al-Ameen Bin Moulana Ismail Akoo


Student, Darul Iftaa

Newcastle; KZN, South Africa


Checked and Approved by,
Mufti Ebrahim


أحكام القرآن – (196 / 3)

وحاصل الكلام ان ترويح القلب وتفريحه وكذا تمرين البدن من الاتفاقات المباحة والمصالح البشرية لا تمنعها الشريعة السمحة برأسها.


أحكام القرآن – (201 / 3)

ان اللهو علي أنواع: لهو مجرد ، ولهو فيه نفع وفائدة ولكن ورد الشرع بالنهي عنه ، ولهو فيه فائدة ولم يرد في الشرع نهي صريح عنه ، ولكنه ثبت بالتجربة أنه يكون ضرره أعظم من نفعه ملتحق بالمنهي عنه ، ولهو فيه فائدة ولم يرد الشرع بتحريمه ولم يغلب علي نفعه ضرره ولكن يشتغل فيه بقصد التلهي ، ولهو فيه فائدة مقصودة ولم يرد الشرع بتحريمه وليس فيه مفسدة دينية واشتغل به علي غرض صحيح لتحصيل الفائدة المطلوبة لا

بقصد التلهي . فهذه خمسة أنواع لا جائز فيها إلا الأخير الخامس


و لمزيد من التفصيل أنطر أحكام القرآن لمولانا طفر أحمد العثماتي من صفحة رقم 194 الى 202


فتاویٰ دار العلوم زکرییا\ج 7\ص 640  


DISCLAIMER - AskImam.org questions
AskImam.org answers issues pertaining to Shar'ah. Thereafter, these questions and answers are placed for public view on www.askimam.org for educational purposes. However, many of these answers are unique to a particular scenario and cannot be taken as a basis to establish a ruling in another situation or another environment. Askimam.org bears no responsibility with regards to these questions being used out of their intended context.
  • The Shar's ruling herein given is based specifically on the question posed and should be read in conjunction with the question.
  • AskImam.org bears no responsibility to any party who may or may not act on this answer and is being hereby exempted from loss or damage howsoever caused.
  • This answer may not be used as evidence in any Court of Law without prior written consent of AskImam.org.
  • Any or all links provided in our emails, answers and articles are restricted to the specific material being cited. Such referencing should not be taken as an endorsement of other contents of that website.
The Messenger of Allah said, "When Allah wishes good for someone, He bestows upon him the understanding of Deen."
[Al-Bukhari and Muslim]