God's will is free, independent of all of His creatures and of their actions. "But our God is in the heavens; He does whatever He pleases" (Psalm 115:3), He asks, Who are you, O man, who answers back to God? (Romans 9:20).
His will is just, The judgments of the Lord are true; they are righteous altogether (Psalm 19:9). They are not subject to modification or alteration, since there is no partiality with God who without respect of persons judgeth according to every man's work (1 Peter 1:17 KJV).
The will of the Lord is loving and merciful, But God, being rich in mercy, because of His great love with which He loved us (Ephesians 2:4), has provided salvation from sin through faith in the blood of Christ who died in our place (Romans 3:25). This is in accordance with the eternal purpose which He carried out in Christ Jesus our Lord (Ephesians 3:11), who was foreknown [foreordained] before the foundation of the world (1 Peter 1:20).
The Bible says that we should not be foolish, but understand what the will of the Lord is, (Ephesians 5:17), and a good understanding have all those who do His commandments (Psalm 111:10), Knowing and understanding the will of God depends on the reading and heeding the truth of His word.
There are two aspects of the will of God. His decretive will, discussed above, is His power by His decree in eternity to accomplish His purpose in time and in the creation He has made.
God's perceptive or permissive will applies to His intelligent creation. When He created man in His own image, He gave him the responsibility to rule over the fish of the sea and over the birds of the sky and over the cattle and over all the earth, and every creeping thing that creeps on the earth (Genesis 1:26-27). This meant that man has the power of independent choice--that he could choose to do the will of God or to disobey Him. All went well until that fateful day when Adam acted contrary to the known will of his Creator. He had been told of the consequences of that action, and thus brought upon himself and his descendants death, which is separation from God (Genesis 2:17; Isaiah 59:2). In this condition, our ability to choose is flawed, and this is the cause of all of the natural upheavals in the earth and the errors and atrocities within the human race. God knows beforehand whether men will do His will, and He never approves of that which they do in rejection of it. Yet that which happens as the result of their actions is within His will to sustain it or bring it to nought, so that His eternal purpose may be accomplished, having made known to us the mystery of His will, according to His good pleasure which He hath purposed in Himself : that . . . He might gather together in one all things in Christ, both which are in heaven and which are on earth (Ephesians 1:9-10 KJV).