Temptation, by its very nature, feels wrong. God's moral law is written in the heart of every human being (Romans 1:20), and when a sinful temptation is introduced, our consciences immediately sense danger. However, the temptation itself is not the sin. Jesus was tempted (Mark 1:13; Luke 4:1-13), but He never sinned (Hebrews 4:15). Sin occurs when we mishandle temptation.

There are two avenues by which we are tempted: Satan and our own sinful flesh. Acts 5 gives an example of someone tempted by Satan. Ananias and his wife, Sapphira, wanting to appear more spiritual than they really were, lied to the apostles and pretended they were giving as an offering the full price of some property they had sold. Peter confronted them: “How is it that Satan has so filled your heart that you have lied to the Holy Spirit and have kept for yourself some of the money you received for the land?”(verse 3). In this instance, Peter knew that the temptation to lie had come from Satan. Ananias and his wife both gave in to that temptation (verses 7-10). The betrayal of Jesus by Judas Iscariot is also attributed to Satan's influence (Luke 22:3; John 13:2).

Read more; "Is temptation a sin? Is it a sin to be tempted?"