Did Allah Create Humans To Torture When He Knew The Result?
Yes he did ask if we accept the responsibility of free will and humans accepted that responsibility. Allah also states that he sent us here for a test to achieve eternal life in Paradise. He also says if we remember any of this. I am not sure why he erased our memory. What if we all remembered our conversation with Allah and our memory of heavens, would our behaviour be different? Would this test be valid? Certainly our behavior will be different if we remembered Allah and remembered paradise. On the other hand Iblis while talking to Allah still rebelled and prophet Adam while remembering his conversation with Allah still made a mistake. I think it is better that we do not remember. For one it makes the test valid. Secondly if we remembered and still committed all the sins then our crime would have been more severe.