Did God plan for Man to fail so that God could redeem him, or did God make a mistake and have to bail Himself out of it?

Shin da wacce mahanga Kur’ani ke kallon mutum? a matsayin wanda yake yin zalunci da jahilci, ko kuma halifan Allah a bayan kasa?
