Former Portugal left-back Rui, who joined Napoli initially on loan from AS Roma in 2017, was tied with the club until June 2026 after signing an extension last year.
The 33-year-old, who played more than 170 games for Napoli in Serie A, was out of the favour since the arrival of coach Antonio Conte prior to the 2024-25 season.