Prophet Adam, upon him be peace, ate the forbidden fruit, but he repented immediately. Satan, however, saw it beneath himself to correct his mistake and thus rebelled against Allah. This goes to show that acknowledging one’s mistake, turning away from such a course and repenting for it immediately, is essential for deliverance from Divine punishment.