The disk image for the version of macOS you wish to install (e.g., Big Sur, Monterey, or Sonoma).
For those comfortable with the command line, you can convert the DMG to a CDR/ISO, then DD it to the USB. create mac os x bootable usb installer from dmg
However, if you must use a DMG:
Flush and eject: