Then David came to Nob, to Ahimelech the priest. And when Ahimelech met David, he trembled and asked him, “Why are you alone? Why is no one with you?”
Ahimelech's trembling greeting shows he immediately senses something is wrong — a man of David's standing arriving alone, with no attendants and no explanation, was not how such visits normally happened.
Now then, what do you have on hand? Give me five loaves of bread, or whatever can be found.”
David's request is entirely practical — food for himself and the men waiting elsewhere — and gives no hint yet of the invented backstory it will need in order to be honored.
Now one of Saul’s servants was there that day, detained before the LORD. And his name was Doeg the Edomite, the chief shepherd for Saul.
This single detail, easy to pass over on a first reading, plants the seed of the disaster that will unfold in the very next chapter — a witness to everything happening here is present, and he does not have Ahimelech's good will toward David.
Then David asked Ahimelech, “Is there not a spear or sword on hand here? For I have brought neither my sword nor my weapons with me, because the king’s mission was urgent.”
David keeps building on his invented story to explain the second gap in his preparation, a man who fled his own home too suddenly to bring even a weapon with him.
That day David fled from Saul and went to Achish king of Gath.
Fleeing to Gath, Goliath's own city, is a startling choice for a man who has just been handed Goliath's own sword — David is walking directly into the territory of the very people he has fought hardest against.
Now David took these words to heart and was very much afraid of Achish the king of Gath.
David's fear here is entirely rational — he has walked, unarmed protection aside, into the court of a king whose own people have just identified him as their nation's most dangerous enemy.
Then Achish said to his servants, “Look, you can see that the man is insane! Why have you brought him to me?
David's desperate performance works exactly as intended, convincing Achish that whatever threat this man might once have posed, a raving madman poses none at all.