You go through a tragedy and a painful event.You commit suicide like a coward and burn in hell forever.
or
you seek help from God until he guides u through it.
Its all pre-decided by God but our actions come into play as well. In every situation God has written and knows of every possible step we can take but its up to us what we decide.
All of us make mistakes but important thing is if we ask for forgiveness.God has given us clear guidelines of dos and donts.Dos will take us to heaven and donts will make us burn in hell.
Think of it as this way,your mommy told u not to eat candy and pick bugger while shes gone to market but when she comes back and finds u picking bugger why do u expect to be cuddled ? Eating candy isnt a sin but killing/lying/deceiving is a sin and this gives God the right to throw humans in hell and burn for eternity.
One will spend his time in hell for the amount of sins he has done and when the period will be over he will be taken out except the ones who has done kabeera gunnah.stuff like shirk and other stuff which id ont remember has no forgiveness and will be burnt in hell forever.
well we dont know what was God’s idea behind creating us little beings.He clearly says in Quran he never needed human and angels to worship him.And even when angles questioned God abt creating people who will cause violance and bad in the world,God replied “i know what u dont”.SO clearly he had something great in his mind and we cant question his wisdom
Like i said earlier noones created good/bad.its their deeds and decisions in life which makes them pious/sinners in the eyes on God.It will be our fault if we will let ourselves be influenced by satan whos our biggest enemy.