2 Samuel 24:19

And David, according to the saying of Gad, went up as the LORD commanded.