Following his baptism, Jesus was guided by the Spirit into the wilderness, where he fasted for forty days and nights. During this time, the devil approached him and presented three temptations.