The temptation of Christ is detailed in the Gospels of Matthew, Mark and Luke. According to these texts, after being baptized by John the Baptist, Jesus fasted for 40 days and nights in the Judaean Desert. During this time, Satan appeared to Jesus and tried to tempt him..
Matthew 3:16-4:11 New International Version (NIV)
16 As soon as Jesus was baptized, he went up out of the water. At that moment heaven was opened, and he saw the Spirit of God descending like a dove and alighting on him. 17 And a voice from heaven said, “This is my Son, whom I love; with him I am well pleased.”
Jesus Is Tested in the Wilderness
4 Then Jesus was led by the Spirit into the wilderness to be tempted[a] by the devil. 2 After fasting forty days and forty nights, he was hungry. 3 The tempter came to him and said, “If you are the Son of God, tell these stones to become bread.”
4 Jesus answered, “It is written: ‘Man shall not live on bread alone, but on every word that comes from the mouth of God.’[b]”
5 Then the devil took him to the holy city and had him stand on the highest point of the temple. 6 “If you are the Son of God,” he said, “throw yourself down. For it is written:
“‘He will command his angels concerning you,
and they will lift you up in their hands,
so that you will not strike your foot against a stone.’[c]”
7 Jesus answered him, “It is also written: ‘Do not put the Lord your God to the test.’[d]”
8 Again, the devil took him to a very high mountain and showed him all the kingdoms of the world and their splendor. 9 “All this I will give you,” he said, “if you will bow down and worship me.”
10 Jesus said to him, “Away from me, Satan! For it is written: ‘Worship the Lord your God, and serve him only.’[e]”
11 Then the devil left him, and angels came and attended him.
Footnotes:
- Matthew 4:1 The Greek for tempted can also mean tested.
- Matthew 4:4 Deut. 8:3
- Matthew 4:6 Psalm 91:11,12
- Matthew 4:7 Deut. 6:16
- Matthew 4:10 Deut. 6:13