«لَقَدْ أُوحِيَ إِلَيْكَ وَإِلَى الَّذِينَ مِنْ قَبْلِكَ»
It has certainly been revealed to you and to those before you.
The subsequent severe hypothetical warning can also serve taʿrid, indirect implication: an honored addressee is spoken to in a conditional form while other listeners are made aware that the principle applies with grave force.
Indirect allusion does not erase the grammatical addressee. It recognizes that a statement directed openly to one person may be designed to instruct or admonish others as well.