If the LORD has stirred you up against me: David was confused by Saul’s actions and worried he might have sinned without knowing.
if men have done it: This might refer to Doeg (1 Samuel 22:9–10).
serve other gods: This idea is similar to Psalm 137:4. People exiled from the holy land could not worship the Lord through sacrifices at the main sanctuary.