Working as a lawyer could leave a person open to supporting evil and defending it, because the lawyer desires for example, to have the criminal whom he is defending found innocent. So, are such earnings of a lawyer unlawful?
The Arabic word used for the practice of law (Muhamah) comes from a wordthat means protection (Himayah). If it is done to protect evil and to defend it, then there is no doubt that it is unlawful, because it involves committing that Allah has mentioned in His Words: “…but do not help one another in sin and transgression…” [Quran 5:2]. If the practice of law is in order to protect goodness and to defend it, then it is a praised form of protection which Allah commanded. Based upon this, whoever was preparing himself for that, before taking a particular case, must first look at the case and study it. If the truth is on the side of the one seeking legal counsel, he may take the case, support the truth and help the one whose case it is. But if the truth is not with the person seeking legal counsel, then he may also take the case, however the protection here will be the opposite of that which the person seeking legal counsel desires. Meaning he is to protect that person so that he does not do what Allah has forbidden, and does not claim what does not belong to him, or merely to rebuke what he is doing.