The line "Who thou art mayst never know" (or "Who thou art mayst never know" / "Who thou art may never know") is spoken by Oedipus to Jocasta—not the reverse.
Late in Oedipus Rex, as the truth crystallizes, Oedipus confronts Jocasta. She has realized the horror (she is his mother) and begs him to stop investigating. He refuses. In the exchange, he declares that neither of them will ever fully comprehend his identity—because the secret of his birth is known only to Apollo, and gods don't speak directly to men.
Oedipus isn't saying "You'll never know who I am." He's saying: "The complete truth of my identity is inaccessible to both of us—only Apollo knows, and Apollo doesn't talk to mortals directly." It's a theological statement about the limits of human knowledge, not a personal rebuke to Jocasta.
The exact phrasing varies by translation (Fagles, Grene, Kitto, Storr, etc.). The Greek: οὐ γὰρ ἂν γνοίης οὐδὲ ἐγὼ / τίς εἰμι ("For neither would you know nor I / who I am"). The "mayst never know" phrasing is a poetic translation choice.
The irony: Oedipus does know moments later. The line marks the last instant of his chosen ignorance.