The OT tells us little about practices in relation to the dead among for the Israelite community as a whole, just elements to do with purity, with the aim at least in part of re-visioning the right order of creation which is part the pre-occupation with keeping certain things distinct and separate with things being okay one place but not another, as a liturgical re-ordering of the world to reestablish order and ideas of right order, health and functionality from the disorder and chaos and keep these present in Jewish minds, requiring the important of separating out things (drawing on Genesis separating light from darkness), which goes with their calling as God’s people to restore the human calling. But apart from the purity instructions it tills us little of their practices in relation to the dead, burial practices, rites and rituals given, some references to the tombs in 1 and II Kings gives us some historical record, as well references in some prophets, beyond that we leave chronicle history which contains references to Abraham, Issac and Jacob using a cave, and Joseph brought back to be buried there, but whether this is a concrete historical referent retained and embedded in memory of the oral traditions that came down the generations in Israel we can’t know now. Even if it’s the case, there seems no clear consistent practice, and the archaeological record shows no unique Israelite burial custom throughout the Biblical period, they used the same practices and the people around them, burial with grave goods, without, in caves, in mass burials, and all the likely various customs that go along with that. Further, this doesn’t even get into the differences between north and south as ancient Israelite culture developed, between the Temple with the acceptance of the cherubim (the winged creatures that had grown popularity in the Middle East) and it’s use as a central part within Holy of Holies, vs the use of the golden calves used to frame places of worship in the north, and what effect that might have had on approaches to the dead (for instant Hosea 6:2, that after two days He will revive us, on the third day He will raise us up, was originally a likely denial of any return to life in it’s original context but was already being taken in the complete opposite meaning by the time of Isaiah (or Isaiah 2) showing a somewhat radical move in development with the beginning of the affirmation of the belief in resurrection emerging as creational monotheism together with election as God’s people met justice and eschatology leading to resurrection (a uniquely Jewish belief). Yet it was a radical new one, we need to remember the Sadducees were the conservatives, they rejected resurrection both because they saw it as new and because it was political dynamite, it denied tyrants their final weapon and was the driver of revolution (such as Maccabean rebellion during which there was a great development in resurrection ideas). So you already have competing ideas of resurrection vs non-resurrection, survival vs none, and the exact details and interaction between such ideas and customs we know little to nothing much about, apart from the fact that they used the same burial practices as their neighbours (which we might not unreasonably assume included a number of similar practices in relation to the dead apart from the purity requirements). And we must not make the mistake of mixing the idea of praying for the dead (such as the Maceabees did above) with necromancy that is divining and using the dead, those are different categories that were not the same in the ancient world Jewish or pagan (or today for that matter) and should not be confused (such confusion causes to much harm already).
To use the OT texts as a definitive statement on ancient Jewish approaches to the dead is simply not possible, the texts in question are not interested in providing us with those details. Furthermore, which OT texts, in the NT times there was no agreed OT, you have a number of different traditions of both Torah and prophets and Psalms, without any way for us to know which was the ‘original’ the Dead Sea Scrolls attest to various versions of Jeremiah, some with more aspects, and different, one with a Psalter in a different order from either the Masoretic or the LXX we have and contains to additional Psalms previously only referenced in the Syrian Christian tradition, and witnesses to both Masoretic (the most popular) tradition and the LXX Hebrew tradition and non-aligned, and then there are the Samaritans with their own version of the Pentateuch who saw themselves as from the lost ten tribes and having the original forms of worship (and probably do contain a thread of non-Temple practices. And then there are the apocryphile works, some of which are sited authoritatively in NT works (there is Jude and Paul referring to the names of the Egyptian magicians for instance). There just wasn’t an agreed set of writings, the NT shows a preference of the LXX tradition, though Judea itself it seems the Masoretic was at the time of Jesus and into the destruction of the Temple coming into the ascendance. But it wouldn’t be till centuries latter both Christians and Jews would agree to a canon, at the time competing groups had different authoritative writings, and the most conservative Sadducees denied all but the Torah itself (and we don’t know if they had one preferred type of tradition). The same problem also to the NT, all documents are first century, yes, but so are others, and none of it was ever all together for the first few centuries, 1 Clement, the Shepherd of Hermas and the Diadache were also regarded as authoritative by a number of Christians, the West was suspicious of Hebrews while the East was suspicious of Revelation, both agreeing to accept them in the end. Most Christian groups would only have one gospel or an epistle, or none at all, this was before printing, all the ancient world were fundamentally oral societies, it was a long time before an agreed canon of OT and NT writing were accepted as authoritative and others in the end left out, and with no clear idea on who wrote Hebrews, suspicions over the authorship on some Pauline letters, why accept them over others, it was the Church who accepted or rejected them, which reveals problems in suggesting as hinted above ideas that the Church fell away or deviated (suggesting the Holy Spirit went to sleep, and then woke up again and found everything wrong). If we trust the Christians of the 2-4th centuries (and later on some issues) on decisions on such things as the canon, why in the same place where they made such decisions there do some reject other decisions made, and why, why accept arbitrarily one bit, and reject the other bits they might not like and don’t fit their own theology. And if it is responded that scholarship has made our trust in the reliably of accepting the NT documents more confident, this was not an option of earlier Christians, Protestant, Roman Catholic, Eastern or Oriental Orthodox, but further, if we say that scholarship validated the methodology (that of the tradition and liturgical worship and the consciousness and witness of the Church as a whole, as St Irenaeus sights in facing the Gnostics the tradition of apostles handed down through Christian communities represented by named bishops, and says that without this basis of interpretation anyone can make anything they wish out of the Scriptures, sighting an example of a mosaic of a king, which someone takes apart and remakes into an image of a fox, and declares that is what it always represented), then why is the same methodology not trusted on other matters and wider practices, and why, if the methodology is so flawed, and the Holy Spirit so limited His work? This seems more than a little arbitrary to me, and is one of a number reasons as an aside as to why I had to leave Protestantism behind, even if someone rejects them as Orthodox or Catholics, the early Christians were not proto-Protestants (they didn’t possess for a long time a single Bible to be so, and affirmed ecclesiastical structures and practices from the end of the first century onwards that nearly all Protestantism largely refutes or regards as non-essential but was so for them, and fundamentally different views on Eucharist and so on, and how different Protestantism seems to either this or NT studied at the background of 2nd Temple Judaism and their world-view and ideas).
But my own misgivings aside, that brings two important points, first even if we accept the OT references to Sheol as near sleep, that says nothing to humanity after the Resurrection. With Jesus the resurrection of the dead has happened, Hades has been broken and emptied, with resurrection began death is does not dominate us anymore, nor does it does it hold any captive, what was the case prior to the resurrection is not the case post resurrection. But it also brings a more fundamental problem, for the early Christians the OT was about Jesus Christ and the Church, and was always read in that light, it was the hypothesis, the starting point for all things, and all interpretation about OT Scripture, drawing on incidents as the Emmaus road where the Messiah opened their eyes to see everything in the Law/Instructions, Prophets and Psalms that were written about Him, and with the disciples. It is in the earliest Christian creed repeated by Paul to the Corinthians, that Christ died ‘according to the Scriptures’ repeating this phrase, and He died, buried and rose according to the whole Scripture, for the Christians of the first centuries, the first millenium, it was all about Christ, even bit was to be interpreted through Him, about Him and the gospel. Paul does this in his letters, it’s woven in the Gospels where Scripture is sighted that read in context seems to have no immediate Messianic or even prophetic meaning, but that is because neither the early Christians or Jews engaged Scripture as many do today, and Paul refers to veil of Moses, that without the illumination of Christ you will not truly understand the OT. Each book of Scripture in that sense in not equal, it’s not a case of putting some OT next to NT, the OT for early Christians was a commentary on the Gospel, on Jesus Himself and the Church and what happened there, not a strict record and equal texts, just to comple (when they did final agree to the canon that is). The prophets and apostles both testified to Christ Jesus and were founded on Him, their corner stone, and what they really meant only made sense through Him, through the Church which was the pillar and foundation of truth. The text was part of the community, and came from them, inspiration being the act of it being read by and in the church as much as it’s original writing and transmission, it was a whole, with the Holy Spirit the guardian and teaching through the Body, in all the various arguments, conflicts and divisions present from the beginning. This perhaps also indicates some of the differences between those in this argument, different foundational understanding of authority and where it founded, and what this role play in the wider understanding of the Christian community and witness which read it, but in some respects this a false idea, since all different communities read the Scripture within the witness and understanding of their own inherited tradition (or rejecting that, bring than the context of their age and part of the culture to it). The Scriptures do not explain themselves, their are interpreted, and it is that interpretation system and context, not the Scripture itself that is the highest authority for Christians (or anyone else, for that matter) no matter their deepest assertion that Scripture is their highest authority (as if it explained itself, it doesn’t), which brings the question, as St Irenaeus put it above, the context we place, read and interact with the Scriptures through determines utterly how we read them, and live with them, one person sees a king, another a fox and someone something completely different.
Bringing this back to the subject at hand, prohibitions against necromancy says nothing to praying for the dead, which were from early on an inherit part of the conviction of resurrection (thus not a pagan falling away), it was why particularly notable rabbis and Jewish martyrs’ tombs were venerated, and why this practice continued among Christians (and why the fact Jesus’ tomb was not venerated is quite notable and important, He was no longer there so venerating His was pointless, as the angel said, ‘why do you seek the living among the dead’). But even more so, the resurrection of the dead, the fact it has began has changed everything, no longer to people truly die, though they die they live on in Christ, resting with Him and will rise again to full existence and Life, they continue and Acts itself is a witness to both the first disciples and Pharisees not only believing this continuity but believing witness and interaction with and form the community asleep was possible. More so, Christians are united to Christ, and He to us, we are members of His body, our bodies are for the Lord and will be raised by Him, a person can’t be part of Christ, living in Him and then suddenly stop at death, with the Incarnation the Son of God joined Himself to both humanity and creation in the deepest way possible, and joined us and it to Him, Christians once asleep remain held in and with Him, and that theology, that there were part of Christ, that they remained in communion with Him and therefore with the Church is the foundation behind such practices as praying for and with those asleep, and venerating (honouring) the remains and tombs of Christian martyrs and saints. It is founded from Jewish practices, and is founded in the very concepts of creational monotheism, Incarnation and Resurrection, in particularly the belief that the resurrection of the dead had happened and began. There is nothing either pagan or non-Christian (or for that matter Jewish, at least for those that affirmed resurrection) about it.
They only ones who definitely refuted it at the time were the Sadducees, and that was because they denied the resurrection and therefore any survival, not because they thought it violated any OT commandment as such (rather they viewed the whole belief system as a heretical innovation, and dangerous political one at that). Needless to say, their view is not a Christian option.