How did David ask Hashem?
Radak: It says below (verse 6) that when Evyasar fled, he took the Efod with him.