There’s a difference between being tempted and being tested, though sometimes that fact is forgotten.

We must never think, when trials come our way that God is tempting us to sin, or daring us to disobey. On the contrary, it is Satan who seeks transgression; God wants us to be faithful and obedient.

Sometimes the commands of God butt heads with our own selfish desires. When that happens, our faith in God is put to the test. This happened to Abraham when his love for his son was tested against his love for God, (since it was God who told him to offer Isaac on an altar)…

God was not tempting Abraham to sin; He was merely giving a command. God expects us to love and obey Him, and to put His will above our own, no matter how much it hurts. By obeying God (his knife was stopped only by God’s angel), Abraham “passed the test,” which means he learned from experience just how much he loved God. Such an understanding would certainly aid him in days (and temptations) to come.

When God gives a command, that’s not a temptation to sin; it’s an order to obey.

Satan, however, will tempt us to disobey God. He will distract us with worldly affections and pleasures to try and lead us astray. A test of our faith, on the other hand, will (when passed) make us stronger and more resilient to combat the Devil’s temptations.

Disclaimer: It is possible both to be tempted and tested at the same time, but they do not come from the same source. God tests; Satan tempts.

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:13-15)

Addendum: It often goes unsaid, but let’s not forget about the great faith and obedient-heart which Isaac possessed. He laid willingly on the altar, ready to die merely because that’s what was commanded of him. Oh to have the faith of either of those great heroes!