Here is one example among many:
As a deer pants for flowing streams,
so pants my soul for you, O God.
My soul thirsts for God,
for the living God.
When shall I come and appear before God?
My tears have been my food
day and night,
while they say to me all the day long,
“Where is your God?”
These things I remember,
as I pour out my soul:
how I would go with the throng
and lead them in procession to the house of God
with glad shouts and songs of praise,
a multitude keeping festival.
What is David thirsting for? Try this from Deuteronomy 14:
You shall tithe all the yield of your seed that comes from the field year by year. And before the Lord your God, in the place that he will choose, to make his name dwell there, you shall eat the tithe of your grain, of your wine, and of your oil, and the firstborn of your herd and flock, that you may learn to fear the Lord your God always. And if the way is too long for you, so that you are not able to carry the tithe, when the Lord your God blesses you, because the place is too far from you, which the Lord your God chooses, to set his name there, then you shall turn it into money and bind up the money in your hand and go to the place that the Lord your God chooses and spend the money for whatever you desire—oxen or sheep or wine or strong drink, whatever your appetite craves. And you shall eat there before the Lord your God and rejoice, you and your household. And you shall not neglect the Levite who is within your towns, for he has no portion or inheritance with you
This was one of the festivals at God’s sanctuary. David thirsted for God because he remembered the good taste.