Rambam states that free will is granted to every person; if there were no choice, reward and punishment would be unjust. This is important as a counterbalance to any claim that life is fully pre-scripted before birth.
אַל יַעֲבֹר בְּמַחֲשַׁבְתְּךָ דָּבָר זֶה שֶׁאוֹמְרִים טִפְּשֵׁי אֻמּוֹת הָעוֹלָם וְרֹב גָּלְמֵי בְּנֵי יִשְׂרָאֵל שֶׁהַקָּדוֹשׁ בָּרוּךְ הוּא גּוֹזֵר עַל הָאָדָם מִתְּחִלַּת בְּרִיָּתוֹ לִהְיוֹת צַדִּיק אוֹ רָשָׁע. אֵין הַדָּבָר כֵּן אֶלָּא כָּל אָדָם רָאוּי לוֹ לִהְיוֹת צַדִּיק כְּמשֶׁה רַבֵּנוּ אוֹ רָשָׁע כְּיָרָבְעָם אוֹ חָכָם אוֹ סָכָל אוֹ רַחֲמָן אוֹ אַכְזָרִי אוֹ כִּילַי אוֹ שׁוּעַ וְכֵן שְׁאָר כָּל הַדֵּעוֹת. וְאֵין לוֹ מִי שֶׁיִּכְפֵּהוּ וְלֹא גּוֹזֵר עָלָיו וְלֹא מִי שֶׁמּוֹשְׁכוֹ לְאֶחָד מִשְּׁנֵי הַדְּרָכִים אֶלָּא הוּא מֵעַצְמוֹ וּמִדַּעְתּוֹ נוֹטֶה לְאֵי זוֹ דֶּרֶךְ שֶׁיִּרְצֶה. הוּא שֶׁיִּרְמְיָהוּ אָמַר (איכה ג לח) "מִפִּי עֶלְיוֹן לֹא תֵצֵא הָרָעוֹת וְהַטּוֹב". כְּלוֹמַר אֵין הַבּוֹרֵא גּוֹזֵר עַל הָאָדָם לִהְיוֹת טוֹב וְלֹא לִהְיוֹת רַע. וְכֵיוָן שֶׁכֵּן הוּא נִמְצָא זֶה הַחוֹטֵא הוּא הִפְסִיד אֶת עַצְמוֹ. וּלְפִיכָךְ רָאוּי לוֹ לִבְכּוֹת וּלְקוֹנֵן עַל חֲטָאָיו וְעַל מַה שֶּׁעָשָׂה לְנַפְשׁוֹ וּגְמָלָהּ רָעָה. הוּא שֶׁכָּתוּב אַחֲרָיו (איכה ג לט) "מַה יִּתְאוֹנֵן אָדָם חָי" וְגוֹ'. וְחָזַר וְאָמַר הוֹאִיל וּרְשׁוּתֵנוּ בְּיָדֵינוּ וּמִדַּעְתֵּנוּ עָשִׂינוּ כָּל הָרָעוֹת רָאוּי לָנוּ לַחֲזֹר בִּתְשׁוּבָה וְלַעֲזֹב רִשְׁעֵנוּ שֶׁהָרְשׁוּת עַתָּה בְּיָדֵינוּ. הוּא שֶׁכָּתוּב אַחֲרָיו (איכה ג מ) "נַחְפְּשָׂה דְרָכֵינוּ וְנַחְקֹרָה וְנָשׁוּבָה" וְגוֹ': וְדָבָר זֶה עִקָּר גָּדוֹל הוּא וְהוּא עַמּוּד הַתּוֹרָה וְהַמִּצְוָה שֶׁנֶּאֱמַר (דברים ל טו) "רְאֵה נָתַתִּי לְפָנֶיךָ הַיּוֹם אֶת הַחַיִּים". וּכְתִיב (דברים יא כו) "רְאֵה אָנֹכִי נֹתֵן לִפְנֵיכֶם הַיּוֹם". כְּלוֹמַר שֶׁהָרְשׁוּת בְּיֶדְכֶם. וְכָל שֶׁיַּחְפֹּץ הָאָדָם לַעֲשׂוֹת מִמַּעֲשֵׂה בְּנֵי הָאָדָם עוֹשֶׂה בֵּין טוֹבִים בֵּין רָעִים. וּמִפְּנֵי זֶה הָעִנְיָן נֶאֱמַר (דברים ה כו) "מִי יִתֵּן וְהָיָה לְבָבָם זֶה לָהֶם". כְּלוֹמַר שֶׁאֵין הַבּוֹרֵא כּוֹפֶה בְּנֵי הָאָדָם וְלֹא גּוֹזֵר עֲלֵיהֶן לַעֲשׂוֹת טוֹבָה אוֹ רָעָה אֶלָּא הַכּל מָסוּר לָהֶם:
A person should not entertain the thesis held by the fools among the gentiles and the majority of the undeveloped among Israel that, at the time of a man's creation, The Holy One, blessed be He, decrees whether he will be righteous or wicked. This is untrue. Each person is fit to be righteous like Moses, our teacher, or wicked, like Jeroboam. [Similarly,] he may be wise or foolish, merciful or cruel, miserly or generous, or [acquire] any other character traits. There is no one who compels him, sentences him, or leads him towards either of these two paths. Rather, he, on his own initiative and decision, tends to the path he chooses. This was [implied by the prophet,] Jeremiah who stated [Eichah 3:38: "From the mouth of the Most High, neither evil or good come forth." The Creator does not decree that a person should be good and refrain from being evil. Accordingly, it is the sinner, himself, who causes his own loss. Therefore, it is proper for a person to cry and mourn for his sins and for what he has done to his soul, the evil consequences, he brought upon it. This is implied by the following verse [ibid.:39]: "Of what should a living man be aggrieved? [A man of his sins.]" [The prophet] continues explaining, since free choice is in our hands and our own decision [is what prompts us to] commit all these wrongs, it is proper for us to repent and abandon our wickedness, for this choice is presently in our hand. This is implied by the following verse [ibid.:40]: "Let us search and examine our ways and return [to God]." This principle is a fundamental concept and a pillar [on which rests the totality] of the Torah and mitzvot as [Deuteronomy 30:15] states: "Behold, I have set before you today life [and good, death and evil]." Similarly, [Deuteronomy 11:26] states, "Behold, I have set before you today [the blessing and the curse]," implying that the choice is in your hands. Any one of the deeds of men which a person desires to do, he may, whether good or evil. Therefore, [Deuteronomy 5:26] states: "If only their hearts would always remain this way." From this, we can infer that the Creator does not compel or decree that people should do either good or bad. Rather, everything is left to their [own choice].