.... There is a powerful principle in Islamic jurisprudence, the "Law of Necessity," that permits what is forbidden -- the end justifying the means. If a goal is obligatory, then the means can also be obligatory, even if otherwise they might be forbidden.
In Islam the universe of possible human deeds is divided into what is obligatory, permitted neutral, disliked, or forbidden. Then there is the need to balance the pros and cons of every act. This is a world of choice which can embrace a necessary evil, or take a pass on a good deed for the sake of a greater good.
Some "Law of Necessity" exceptions go back to Muhammad; they are hard-wired into Islamic law. A case in point is the exemption for travelers during Ramadan, which some athletes rely on. Another exemption for travelers, which also comes straight from Muhammad, allows Muslims to catch up on prayer times later than the correct hour. [Gatestone Institute] Read more