The sun could collect rogue planets and hold them at the outskirts of the solar system for millions of years, occasionally trading them with neighboring star Alpha Centauri.
The sun is a 'runaway world collector' that can trap passing rogue planets
Source: space
Source Link: https://www.space.com/runaway-world-collector-rogue-planets