A preliminary magnitude 3.4 earthquake shook near Redlands on Friday evening, according to the U.S. Geological Survey.