Yosef Karo, Translation:Shulchan Aruch — Orach Chaim 693…
“ Shulchan Aruch Orach Chaim 693 The prayer service of Purim סדר תפלת פורים 693:1 After the nighttime megillah reading, we say "vAtah kadosh." If it is Saturday night, we say "vihi noam" before "vAtah kadosh." Rem"a: We say "veyiten lecha," read the megillah, and then say Havdalah (Minhagim) . סעיף אאחר קריאת המגילה בערבית אומר ואתה קדוש ואם חל במוצאי שבת אומר ויהי נועם קודם ואתה קדוש: הגה ואומר ויתן לך וקורים המגילה ואח"כ מבדילים (מנהגים) : 693:2 We say "al hanisim" at night and during the day. Rem"a: If it is not said, one need not repeat (Tur) . ”
