Even if Mars or the moon was covered in gold dust...
It wouldn't be cost effective to try and bring it back to Earth. The last I paid any attention, gold was selling for somewhere around $400 an ounce. It costs more than that to launch payloads to the moon or Mars, and it isn't cheap to launch anything from those places back to Earth.
