Jesus fasted and prayed for 40 days in the wilderness, where he was tempted three times by the devil. The first temptation was to turn stones into bread to satisfy his hunger, but Jesus relied on God rather than his own power. The second temptation was to throw himself from the temple to test God, but Jesus said not to test God. The third temptation was to gain power over all the kingdoms of the world by worshipping the devil instead of God, but Jesus said to only worship and serve God. These temptations show Jesus overcoming sin and the devil by relying on God and rejecting earthly desires of fame, wealth and power in favor of doing God's will.