Author: Dr. Muhammad Zia-ur-Rahman Azmi (رحمہ الله)
✔ "Obedience is only in what is good and right."
(Sahih al-Bukhari, Hadith No. 7145; Sahih Muslim, Hadith No. 1840/39)
He also said:
✔ "There is no obedience to the creation in disobedience to the Creator."
(Sunan Abi Dawood, Hadith No. 2625)
"And whoever fears Allah – He will make a way out for him."
(Surah At-Talaq: 2)
Any job that requires violating Allah's commands should be avoided, whether it is in the military or any other profession. Instead, one should seek an alternative halal source of income and refrain from supporting sin and wrongdoing.
Allah commands:
"And cooperate in righteousness and piety, but do not cooperate in sin and transgression."
(Surah Al-Ma'idah: 2)
May Allah guide us all to His obedience.
[Ibn Baz: Majmu' al-Fatawa wa al-Maqalat: 19/345]
The Ruling on Working at a Shop That Offers Beard Shaving
The Prophet Muhammad (ﷺ) has stated in an authentic hadith:✔ "Obedience is only in what is good and right."
(Sahih al-Bukhari, Hadith No. 7145; Sahih Muslim, Hadith No. 1840/39)
He also said:
✔ "There is no obedience to the creation in disobedience to the Creator."
(Sunan Abi Dawood, Hadith No. 2625)
Fear Allah and Do Not Accept Such Work
One must fear Allah and should not agree to a job that involves disobedience to Him. The doors of sustenance are vast and open, as Allah states in the Qur’an:
(Surah At-Talaq: 2)
Any job that requires violating Allah's commands should be avoided, whether it is in the military or any other profession. Instead, one should seek an alternative halal source of income and refrain from supporting sin and wrongdoing.
Allah commands:

(Surah Al-Ma'idah: 2)
May Allah guide us all to His obedience.
[Ibn Baz: Majmu' al-Fatawa wa al-Maqalat: 19/345]