2 Samuel 24:19

19 David went as Gad had told him and as the LORD had commanded him.