Lewis Hamilton will join Ferrari for the 2025 season, working with Riccardo Adami as his race engineer.