Were God to decree that an individual would be righteous or wicked or that there would be a quality which draws a person by his essential nature to any particular path [of behavior], way of thinking, attributes, or deeds, as imagined by many of the fools [who believe] in astrology - how could He command us through [the words of] the prophets: "Do this," "Do not do this," "Improve your behavior," or "Do not follow after your wickedness?"
[According to their mistaken conception,] from the beginning of man's creation, it would be decreed upon him, or his nature would draw him, to a particular quality and he could not depart from it.
What place would there be for the entire Torah? According to which judgement or sense of justice would retribution be administered to the wicked or reward to the righteous? Shall the whole world's Judge not act justly!
A person should not wonder: How is it possible for one to do whatever he wants and be responsible for his own deeds? - Is it possible for anything to happen in this world without the permission and desire of its Creator as [Psalms 135:6] states: "Whatever God wishes, He has done in the heavens and in the earth?"
One must know that everything is done in accord with His will and, nevertheless, we are responsible for our deeds.
How is this [apparent contradiction] resolved? Just as the Creator desired that [the elements of] fire and wind rise upward and [those of] water and earth descend downward, that the heavenly spheres revolve in a circular orbit, and all the other creations of the world follow the nature which He desired for them, so too, He desired that man have free choice and be responsible for his deeds, without being pulled or forced. Rather, he, on his own initiative, with the knowledge which God has granted him, will do anything that man is able to do.
Therefore, he is judged according to his deeds. If he does good, he is treated with beneficence. If he does bad, he is treated harshly. This is implied by the prophets' statements: "This has been the doing of your hands” [Malachi 1:9]; "They also have chosen their own paths” [Isaiah 66:3].
This concept was also implied by Solomon in his statement [Ecclesiastes 11:9]: "Young man, rejoice in your youth... but, know that for all these things God will bring you to judgment," i.e., know that you have the potential to do, but in the future, you will have to account for your deeds.