softwareupdate --fetch-full-installer --full-installer-version 11.7.10 (Note: 11.7.10 is the final stable version of Big Sur. You can remove the version number to get the latest available).

If you are looking for a "macOS Big Sur DMG" to create a bootable USB or perform a clean install, you need to be very careful. Apple does not provide direct DMG downloads for full macOS installers to the public via their website.

Open Terminal (Applications > Utilities) and paste this command: