Cast me not away from thy presence; and take not thy holy spirit from me.
David knows who God is. Israel only knows of Yahweh - the one and only God who is always known as a singular God - there is no other.
- Be gracious to me, God, according to Your faithfulness
- Create in me a clean heart, God
Obviously the focus is on God and His provisions and standards.
thy holy spirit
David was well aware that the spirit God provides is simply His presence with those He has called to serve His purposes. It is His (God's) spirit that David seeks, so we see the 'thy' reference - 'thy' refers to God.
God provided His provision of wisdom, ability and guidance to those He chose for certain jobs and responsibilities.
You shall speak to all the skilful people whom I have endowed with the spirit of wisdom, that they make Aaron’s garments to consecrate him, that he may serve as priest to Me. Ex 28:3
So Bezalel, Oholiab, and every skilled person are to carry out everything commanded by the LORD, who has given them skill and ability to know how to perform all the work of constructing the sanctuary. Ex 36:1
This was not always a permanent provision. "take not thy holy spirit from me"
Once Jesus arrived on the scene, "in these last days", Heb 1:1-2
On many past occasions and in many different ways, God spoke to our fathers through the prophets. 2But in these last days He has spoken to us by His son, whom He appointed heir of all things...
The one who believes in me, as the Scripture said, ‘From his innermost being will flow rivers of living water.’” 39But this He said in reference to the spirit, whom those who believed in him were to receive; for the spirit was not yet given, because Jesus was not yet glorified. John 7:38
The whole point of Jesus coming, living without sin, dying to triumph over sin and death for all mankind, and living again so that we can join him firstly in death, then as he lives, we also live, is to enable a new covenant.
The old covenant was based on the law - the law of sin and death.
The new covenant was the law of spirit and life.
The old was physical, the new, spiritual. The old was temporary, the new eternal.
The OT prophesied about the changes coming in, Isa 32:15-18; 44:3-5; Ezek 11:17-21; 36:26-27; Joel 2:28
Under the old, God was distant, almost remote. The people only had limited access through the priesthood. In the new, God dwells within each person giving each a deposit or down-payment of the filling that would happen at Jesus' return.
While Jesus was on earth in the flesh, he was the presence of 'God with us' as His son - representing the Father perfectly. When he departed, God's and Jesus' presence was provided through the spirit God would send into the church.
When Jesus was glorified after his resurrection and exaltation to God's right side, he and the Father would dwell with in each chosen one.
Jesus replied, “All who love me will do what I say. My Father will love them, and we will come and make our home with each of them. John 14:23 They do this through the spirit of God, just as God fully dwelt within Jesus while he was in the flesh on earth.