God said we should not inquire of dead people.
When men tell you to consult mediums and spiritists, who whisper and mutter, should not a people inquire of their God? Why consult the dead on behalf of the living?
Christ is our high priest and intercedes for us.
24 but because Jesus lives forever, he has a permanent priesthood. 25 Therefore he is able to save completely those who come to God through him, because he always lives to intercede for them. 26 Such a high priest meets our need-one who is holy, blameless, pure, set apart from sinners, exalted above the heavens.
Christ is the only mediator between us and God.
1 Timothy 2:5
For there is one God and one mediator between God and men, the man Christ Jesus
Jesus was clear to whom we should pray.
9 “This, then, is how you should pray: ” ‘Our Father in heaven, hallowed be your name, 10 your kingdom come, your will be done on earth as it is in heaven. 11 Give us today our daily bread. 12 Forgive us our debts, as we also have forgiven our debtors. 13 And lead us not into temptation, but deliver us from the evil one.
James was also clear on prayer.
2 You want something but don’t get it. You kill and covet, but you cannot have what you want. You quarrel and fight. You do not have, because you do not ask God. 3 When you ask, you do not receive, because you ask with wrong motives, that you may spend what you get on your pleasures.
John said can approach God and ask according to His will.
1 John 5:14
This is the confidence we have in approaching God: that if we ask anything according to his will, he hears us.
We need to pray in the Holy Spirit.
But you, dear friends, build yourselves up in your most holy faith and pray in the Holy Spirit.
We do not need priests to stand between us and God. Nor do we need to pray to dead people. We need only go to God.