An earthquake with a magnitude of 3.0 shook residents near San Bernardino County on Monday night, according to the U.S.