Al Imaam Muhammad ibn Saalih Al 'Uthaymeen (may Allaah have mercy upon him) said:
"The religion has come for the happiness of mankind /And for the purpose of removing evil from them and the harm."
The Shaykh commented on these two lines of poetry:
"This is the principle regarding the Islaamic legislation and that it has come for the happiness of mankind and the removal of the evil and that which is harmful for them in the life of this world and in the hereafter. These two matters, which the legislation of the Prophet (sallallaau alayhi wa sallam) revolve around, are that which the benefit can be attained completely or by the majority of. Likewise, the decrease in the evil or the full eradication of it can be attained. Meaning by this: the repelling of that which is harmful and the bringing about that which is good. This is the general applied principle in the religion of Allaah."
Source: Manthoomah Usool Al Fiqh wa Qawaaidih pg. 49
Sisters Upon Al-Istiqaamah