The Scottish First Minister spoke after a train travelling between Glasgow and London came off the tracks on Monday morning.