1 Samuel 30:12
And they gave him a piece of a cake of figs, and two clusters of raisins: and when he had eaten, his spirit came again to him: for he had eaten no bread, nor drunk any water, three days and three nights. And they gave him a piece of a cake of figs, and two clusters of raisins: and when he had eaten, his spirit came again to him: for he had eaten no bread, nor drunk any water, three days and three nights.
The verse occurs in the account of David's pursuit of the enemy after Ziklag was attacked. The pace of that pursuit was too hard for some, and two hundred stopped because they were too faint to continue. It belongs to the account of David's victory over the Amalekites before he became king, a victory soon followed by his accession to the kingship of Judah.
The Egyptian had eaten no bread and drunk no water for three days and three nights. David's men gave him bread, a piece of a cake of figs, and two clusters of raisins, a meal of three varieties of food. When he had eaten and drunk he revived from exhaustion and fainting. His spirit and strength and life came again to him in that revival.
His spirit coming again to him does not mean that a conscious spirit or soul returned from the dead, nor does it require spirit to be a separately conscious entity surviving death. Here spirit means life or breath, the vital principle of life. The same expression can be used of one who has neither died nor lost his reason.