Parshas Naso · Passuk 5:23
And the priest shall write these curses in a book, and he shall blot them out into the water of bitterness.
Torah Temimah points to the classical source in Sefaria TT segment 8 (Planning2).
Sefaria — Torah Temimah on Numbers 5:23.8
Category B — Sequence of writing and blotting.
Writing precedes blotting into the waters.