A preliminary magnitude 3.5 earthquake hit the San Bernardino area Monday morning, according to the U.S. Geological Survey.