1 Samuel 22:5

And the prophet Gad said unto David, Abide not in the hold; depart, and get thee into the land of Judah. Then David departed, and came into the forest of Hareth.

Cross-references

1 Samuel 27:1 shows David planning to flee to Philistines — contrasting with Gad's earlier command to go to Judah in faith.

In 2 Samuel 24:11, the same prophet Gad later delivers God's message to David, showing his ongoing role as David's seer.