A 4.2 magnitude earthquake shook parts of northern New Mexico and southern Colorado early Monday morning.