God tempted David
2 Samuel 24:1 View context
And again the anger of the LORD was kindled against Israel, and he moved David against them to say, Go, number Israel and Judah.
Satan tempted David
1 Chronicles 21:1 View context
And Satan stood up against Israel, and provoked David to number Israel.