Why cannot an action contradict Allah’s knowledge?

Paradise and Hell: Their Permanence, and the Decree of Good and Evil