Everybody will do according to his destiny
22) Abdur-Rahman bin Qatada As-Salami said: I heard the Prophet saying: Allah created Adam, took his progeny from his back and said: These will go to Hell and these will go to Paradise. Somebody said, the narrator added: 0 Messenger of Allah, what shall we do then? The Prophet said: You will do according to your destiny.
(This Hadtth is good and narrated by Ahmad).
Allah is the All-Knower, so He took everybody to Hell or Paradise as per His Knowledge of what will happen in the future, in other words, one's destiny was known to Allah but to him it is absolutely unknown.