This just law is from God...
This just law is from God, and to have a guarantee for its execution, rewards and punishments must be devised, and to enable people to have faith in them, they must know God himself. Thus, knowing God is for several reasons, a pre-requisite for the establishment of justice. Even worship is set up to prevent people from forgetting the legislator and to remember Him always as an overseer, With this argument, calling people to God is another goal, otherwise there would be no motive for knowing Him.
In this way, we have three types of logic, the first one is that the goal in the mission of the prophets is only the establishment of justice among people and securing for them a happy life in this world, accordingly, knowing God and having faith in Him and in Resurrection are all pre-requisites to hat.
The second logic is quite the reverse, that is, knowing God and worship and proximity to God are the main goal, and justice is secondary Man’ s spirituality in this world is predicated on his social life, and social life without law and justice is not possible. So, law and justice are pre-requisites for worshipping God. Thus attending to social problems which we consider so important today in connection with justice are objectives of the Prophets, but its importance remains secondary.
The third view questions the necessity of envisaging a separate goal for the prophets’ mission and another for Creation and life, and thereby the need of considering one of them as the principal goal and the other as a subsidiary one We may say the prophets have had two independent goals, one of them as a link between man and God for the sake of worshipping Him, and secondly to establish justice among people; so we may put aside the idea of one of them being a pre-requisite to the other.
You can find examples of this in the Qur’an, where the matter of the purification of self is emphasized, and salvation is stated to depend on it Is self-purification a goal in Islam? Is it a goal or a pre-requisite, pre-requisite for what? For knowing God, and linking to Him and worshipping Him? Or for the establishment of social justice? According to this view, as the prophets’ mission sought the establishment of social justice, social evils and goodness are distinguished.