After the death of Saul, David returned from attacking the Amalekites. He stayed in Ziklag for two days.
Read & study FBV 1:1And it came to pass after the death of Saul, when David was returned from the slaughter of the Amalekites, and David had abode two days in Ziklag;
Read & study ASV 1:1