For safety and legality, it's best to start from the official MAME website or associated repositories for obtaining MAME versions.
Downloading ROMs for games you do not own the rights to may infringe on copyright laws. This guide is for educational purposes only, and I encourage users to support game developers by purchasing their games or official merchandise.