Stars passing close to the sun could cause planets to collide, including with Earth, or even be ejected as rogue planets, new simulations show.
Asimov has a book about this, called Nemesis, where humanity has to stop T̶h̶e̶ ̶B̶o̶r̶g̵ a rogue star from traveling too close to the solar system.