This website is under review. Do not rely on it for final rulings.
Machine translation
Question
I am a married man, and I work as a web developer for a company that deals with e-commerce websites. My work consists of improving the sites of the company's clients upon their request, such as adjusting the placement of the buy button and improving the steps for completing a purchase, with the aim of increasing sales. Most of the sites I work on are permissible with no issue. Sometimes I decline some projects because they include clearly prohibited matters, and I limit my refusal to what is clearly forbidden with no doubt about it, because I fear that frequent refusal might lead to losing my job at the company. At the same time, I want my criterion for refusal to be clear, so that I can easily decline when presented with a project that includes a clearly prohibited matter. I previously worked on a website specialized in selling Christmas trees only. It is not among the clearly prohibited matters that I usually refuse, but I am hesitant about its ruling. My work on it amounted to about twenty days a year, spread over scattered periods. Must I decline to work on this website and leave it, even if I believe it may harm my job or income? Or may I continue with it? What is the ruling on the money I earned from it in the previous period? Must I get rid of part of it or all of it? May Allah reward you well and benefit through your knowledge.
Answer
All praise is due to Allah, and prayers and peace be upon the Messenger of Allah, and upon his family and companions. To proceed:
If the field of most of the websites you work on is permissible, then the basic ruling is that your work in this company is permissible. It is obligatory for you to continually decline developing websites specialized in forbidden fields, including that website selling Christmas trees for the religious feast of the Christians, due to the prohibition of helping in sin and in false rites. Allah the Exalted said: "وَتَعَاوَنُوا عَلَى الْبِرِّ وَالتَّقْوَى وَلَا تَعَاوَنُوا عَلَى الْإِثْمِ وَالْعُدْوَانِ[Al-Ma'idah: 2].
The scholars have explicitly stated the prohibition of selling what is specific to the festivals of disbelievers or what is used to observe them.
Ibn Taymiyyah said in his book Iqtida' al-Sirat al-Mustaqim: As for Muslims selling to them during their festivals what they use for their festival, such as food, clothing, basil and the like, or gifting them such things, this involves a kind of assistance in holding their forbidden festival, and it is based on a principle: that selling disbelievers grapes or juice that they make into wine is not permissible... If what they buy is something they use to do the forbidden itself, such as a cross, Palm Sunday observances, baptism, incense burning, slaughter for other than Allah, or an image, and the like, then there is no doubt about its prohibition. End of quote.
It is stated in the book Al-Madkhal by Ibn al-Hajj: From the abridgement of Al-Wadihah [in Maliki jurisprudence] ... Ibn al-Qasim disliked that a Muslim give a gift to a Christian on his festival as a reward to him, and he considered it a form of honouring his festival and assistance to him in the interest of his disbelief. Do you not see that it is not permissible for Muslims to sell to Christians anything for the purposes of their festival, neither meat, nor condiments, nor clothing, nor is an animal to be lent to them, nor are they to be assisted in anything of their religion, because that is honouring their polytheism and aiding them in their disbelief. The rulers should forbid Muslims from that, and this is the view of Malik and others; I know of no one who disagreed on this. End of quote.
Provision is in the hand of Allah, the Exalted, and complying with the command of Allah, the Exalted, by abandoning what is unlawful brings good provision and blessing in it. Allah the Exalted says:وَمَنْ يَتَّقِ اللَّهَ يَجْعَلْ لَهُ مَخْرَجًا * وَيَرْزُقْهُ مِنْ حَيْثُ لَا يَحْتَسِبُ[At-Talaq: 2-3].
It is established in the authentic hadith from the Prophet, peace be upon him, that he said:Indeed, you will not leave anything for the sake of Allah except that Allah will give you something better than it.. Narrated by Ahmad.
Since your work in developing the mentioned website does not exceed twenty scattered days in the year, as you mentioned, and most of the work of the company you work for is in permissible matters, then excusing yourself from such work on this website while striving and excelling in other permissible websites will make it easy for you to avoid unlawful work.
As for the money you earned in the previous period before you knew the ruling, it is lawful for you, and you are not obligated to get rid of any of it, based on the saying of Allah the Exalted:فَمَنْ جَاءَهُ مَوْعِظَةٌ مِنْ رَبِّهِ فَانْتَهَى فَلَهُ مَا سَلَفَ وَأَمْرُهُ إِلَى اللَّهِ[Al-Baqarah: 275]. The verse indicates that whoever deals in a forbidden transaction while unaware of its prohibition, and then the clarification reaches him and he ceases immediately upon knowing, what he received and what passed before the clarification is pardoned for him and permissible to him, and he is not obligated to get rid of it.
The Sheikh Ibn Taymiyyah affirmed in several places that whoever deals in a prohibited transaction, such as usury or invalid transactions, while he is ignorant of its prohibition or was interpreting it, and then the prohibition reached him and he desisted, then what he received and what passed before he knew is lawful for him. He is not obliged to return it or to rid himself of it, based on the principle that the ruling of the command and the prohibition is not established until the message reaches him. He, may Allah the Exalted have mercy on him, said in Jami' al-Masa'il, the Eighth Collection: What there is no doubt about in my view is: what he received by interpretation or ignorance. So for him what preceded is beyond doubt, as indicated by the Book, the Sunnah and reasoning ... Likewise, everyone who earned unlawful wealth and then repented, if it was with the consent of the giver. The same applies to the earnings of a prostitute and the gift of a soothsayer. This is not far from the principles of the Sharia, for it distinguishes between the one who repents and the one who does not, as in His saying: "So whoever receives an admonition from his Lord and desists, for him is what has passed." End of quote.
He also said: The Sharia consists of command and prohibition. So if the ruling of the command is not established until the address reaches a person, and likewise the prohibition, then whoever does something he did not know was forbidden, and then learns of it, is not punished. And if he dealt in usurious transactions which he believed to be permissible, and received from them what he received, and then an admonition came to him from his Lord and he desisted, then for him is what has passed ... That is because what he received before he knew it was forbidden, there is no sin upon him for receiving it, since he did not know it was forbidden. The disbeliever, if his receiving is forgiven because he repented, then the Muslim is more deserving of this by way of priority. End of quote.
See also the following fatwas for benefit: 170869، 320944، 7094.
And Allah knows best.
الحمد لله، والصلاة والسلام على رسول الله، وعلى آله وصحبه، أما بعد:
فإن كان المجال لغالب المواقع التي تعمل عليها مباحًا، فالأصل أن عملك في هذه الشركة مباح، والواجب عليك دوام الاعتذار عن تطوير المواقع المتخصصة في المجالات المحرمة، ومنها ذلك الموقع في بيع أشجار الكريسماس الخاصة بعيد النصارى الديني؛ وذلك للنهي عن الإعانة على المنكر والشعائر الباطلة، قال الله تعالى: وَتَعَاوَنُوا عَلَى الْبِرِّ وَالتَّقْوَى وَلَا تَعَاوَنُوا عَلَى الْإِثْمِ وَالْعُدْوَانِ [المائدة: 2].
وقد نصَّ العلماء على تحريم بيع ما يختص بأعياد الكفار أو يُستعان به على إقامتها.
قال ابن تيمية في كتابه اقتضاء الصراط المستقيم: فأما بيع المسلمين لهم في أعيادهم، ما يستعينون به على عيدهم، من الطعام واللباس والريحان ونحو ذلك، أو إهداء ذلك لهم، فهذا فيه نوع إعانة على إقامة عيدهم المحرم، وهو مبني على أصل وهو: أن بيع الكفار عنبًا أو عصيرًا يتخذونه خمرًا لا يجوز ... فإن كان ما يبتاعونه يفعلون به نفس المحرم؛ مثل صليب، أو شعانين، أو معمودية، أو تبخير، أو ذبح لغير الله، أو صورة ونحو ذلك؛ فهذا لا ريب في تحريمه. انتهى.
وجاء في كتاب المدخل لابن الحاج: ومن مختصر الواضحة [في الفقه المالكي] ... وكره ابن القاسم للمسلم أن يهدي إلى النصراني في عيده مكافأة له، ورآه من تعظيم عيده، وعونًا له على مصلحة كفره. ألا ترى أنه لا يحل للمسلمين أن يبيعوا للنصارى شيئًا من مصلحة عيدهم، لا لحمًا، ولا إدامًا ولا ثوبًا، وَلَا يُعَارُونَ دابَّةً، ولا يُعَانُونَ على شيء من دينهم؛ لأن ذلك من التعظيم لشركهم، وَعَوْنِهِمْ على كفرهم، وينبغي للسلاطين أن ينهوا المسلمين عن ذلك، وهو قول مالك وغيره، لم أعلم أحدًا اختلف في ذلك. انتهى.
والرزق بيد الله سبحانه، وامتثال أمر الله تعالى، بترك الحرام مجلبةٌ للرزق الطيب وللبركة فيه؛ قال الله تعالى: وَمَنْ يَتَّقِ اللَّهَ يَجْعَلْ لَهُ مَخْرَجًا * وَيَرْزُقْهُ مِنْ حَيْثُ لَا يَحْتَسِبُ
وثبت في الحديث الصحيح عن النبي صلى الله عليه وسلم أنه قال: إنك لن تَدَعَ شيئًا اتقاء الله إلا أعطاك الله خيرًا منه. رواه أحمد.
وبما أن عملك في تطوير هذا الموقع المذكور لا يتجاوز العشرين يومًا متفرقة في السنة، -كما ذكرت- وغالب عمل الشركة التي تعمل فيها في المباحات؛ فإن الاعتذار عن مثل هذا العمل في هذا الموقع مع الاجتهاد والتميز في باقي المواقع المباحة، سيسهل عليك توقي العمل المحرم.
وأما المال الذي كسبته في الفترة السابقة قبل معرفتك بالحكم؛ فهو حلال لك، ولا يلزمك التخلص من شيء منه؛ لقول الله تعالى: فَمَنْ جَاءَهُ مَوْعِظَةٌ مِنْ رَبِّهِ فَانْتَهَى فَلَهُ مَا سَلَفَ وَأَمْرُهُ إِلَى اللَّهِ [البقرة: 275]. فدلت الآية على أن من تعامل بمعاملة محرمة وهو يجهل تحريمها، ثم جاءه البيان فانتهى فور علمه؛ فإن ما قبضه ومضى قبل البيان معفوٌ عنه ومباحٌ له، ولا يلزمه التخلص منه.
وقد قرر الشيخ ابن تيمية في عدة مواضع أن من تعامل بمعاملة محرمة -كالربا، أو المعاملات الفاسدة-، وهو يجهل تحريمها، أو كان متأولاً، ثم بلغه النهي وانتهى؛ فإن ما قبضه ومضى قبل العلم حلالٌ له، ولا يلزمه ردّه ولا التخلص منه، تأسيسًا على أن حكم الخطاب والنهي لا يثبت إلا بعد البلاغ، فقال -رحمه الله تعالى- في جامع المسائل - المجموعة الثامنة: الذي لا ريبَ فيه عندي فهو: ما قبضَه بتأويلٍ أو جهلٍ؛ فهنا له ما سلف بلا ريب، كما دلَّ عليه الكتاب والسنة والاعتبار ... وكذلك كلُّ مَنْ كسب مالًا محرمًا ثم تاب، إذا كان برضا الدافع، ويلزم مثل ذلك في مهر البغيِّ وحُلوانِ الكاهن، وهذا ليس ببعيد عن أصول الشريعة، فإنها تُفرِّق بين التائب وغير التائب، كما في قوله: فَمَنْ جَاءَهُ مَوْعِظَةٌ مِنْ رَبِّهِ فَانْتَهَى فَلَهُ مَا سَلَفَ. انتهى.
وقال أيضًا: والشريعة أمرٌ ونهي، فإذا كان حكم الأمر لا يثبت إلا بعد بلوغ الخطاب وكذلك النهي، فمَنْ فعلَ شيئًا لم يعلم أنه محرَّم، ثم علم لم يُعاقَبْ. وإذا عامل معاملاتٍ ربويةً يعتقدها جائزةً وقبضَ منها ما قبضَ، ثم جاءه موعظةٌ من ربه فانتهى فله ما سلف ... وذلك أن هذا الذي قبضه قبل أن يعلم أنه محرَّم لا إثمَ عليه في قبضه، فإنه لم يكن يعلم أنه محرَّم، والكافر إذا غُفِر له قبضُه لكونه قد تابَ، فالمسلم أَولى بطريق الأَولى. انتهى.
والله أعلم.