Allah Subhanahu Tala Created each and every being,according to the Holy Quaran...Lets asssume there is a creation who will end up in hell... Allah knew this even before creating it..Still Allah goes on to create it...Why??I mean some will say that Allah has given us willpower with which we can change our destiny....I agree ,,But Allah also knew that he/she is going to misuse his /her willpower and will eventually get deviated..So Why is he/she created??
according to Quran ALLAH created us only for HIS pray and to test us on the behalf of us that what we do ,which path we choose ,can we stand with the messenger(Hazrat Mohammad (s.a.w)) of ALLAH or opponent.
Blessed is He in whose hand is dominion, and He is over all things competent -
[He] who created death and life to test you [as to] which of you is best in deed - and He is the Exalted in Might, the Forgiving -