The answer to this claim is as follows...
The answer to this claim is as follows: If we desist from imposing our pre-conceived opinions upon the verse, then its meaning is clear, for it says: On that Day, a group shall be fortunate as a result of their deeds, while a group shall become wretched due to their deeds, and Allah (s.w.t.) is aware of those, who shall traverse the path to prosperity out of their own free will, and those, who shall advance towards wretchedness, out of their own will and choice.
Thus, contrary to what Fakhr Razi has said, if the people were compelled to select a path, His knowledge would in reality be His ignorance since He had known that all the people would opt for the blessed and wretched path of out of their own will and choice.
A proof to what has been stated above is the fact that the above verses are mentioned pursuant to the narratives of the previous nations, a large number of whom, as a result of deviation from the path of truth and opposition to the divine leaders, were seized by a painful chastisement in this world. And the Qur’an, with the objective of guiding us by distinguishing the paths leading towards prosperity and wretchedness, has recounted these narratives for us.
Essentially, as Fakhr Razi and other like-minded individuals imagine, if we were to possess inherent fortunateness and wretchedness, and if it were to be drawn towards good and evil deeds without any choice, all the teaching and training would be vain and futile.
The coming of the prophets, the revelation of the Divine books, the advices, admonitions, encouragements, censures, rebukes, criticisms, remonstrations, Reckoning and finally, rewards and punishments - all of them - would be looked upon as either useless, or tyrannical!
Even those, who regard man as being compelled with respect to performing good or evil acts - irrespective of whether they consider this compulsion to be Divine compulsion, natural compulsion, economic compulsion or circumstantial compulsion, only advocate this theory when speaking or studying; however, when it comes to real life actions, even they do not profess this opinion.