Please find an OT prayer or Psalm directed towards Moses or any other human being. You wont find one. When Joshua prayed he went directly to God and did not invoke the name of Moses nor seek the departed Moses as an intercessor.
1 Tim 2:1-4: First of all, then, I urge that supplications, prayers, intercessions, and thanksgivings be made for all men, for kings and all who are in high positions, that we may lead a quiet and peaceable life, godly and respectful in every way. This is good, and pleasing to God our Savior, who desires all men to be saved and to come to the knowledge of the truth.
If this is your reply, you’ve misread either the question or the passage. Big difference in praying for someone and praying to someone.
Read our prayers to the Saints... we asking them to pray FOR us.