The priest said, The sword of Goliath the Philistine, whom you killed in the valley of Elah, behold, it is here wrapped in a cloth behind the ephod: if you will take that, take it; for there is no other except that here. David said, There is none like that; give it me.
The mention of Doeg, an Edomite who had risen high in Saul’s government (1 Samuel 21:7), prepares the reader for his informing Saul about what happened at Nob (1 Samuel 22:9-19). Perhaps Doeg was "detained before the Lord" because he had come to the tabernacle to present an offering or to conduct some other business there.