Temptation is never a sin.
Jesus was tempted for 40 days straight by Satan in the wilderness, yet He said "the prince of this world cometh, and he hath nothing in Me." Not once did He sin in thought or deed, even though He "was in all points tempted like as we are, yet without sin."
The Bible furthermore tells us,
"Blessed is the man that endureth temptation: for when he is tried, he shall receive the crown of life, which the Lord hath promised to them that love him. Let no man say when he is tempted, I am tempted of God: for God cannot be tempted with evil, neither tempteth He any man: But every man is tempted, when he is drawn away of his own lust, and enticed. Then when lust hath conceived, it bringeth forth sin: and sin, when it is finished, bringeth forth death." James 1:12-15
Hope this helps,
Jon