Carlos Sainz was in advanced contract talks with Ferrari when he was delivered the news about Lewis Hamilton's arrival.