Lewis Hamilton says he would like to see Robert Kubica competing in the sport next season, after the Williams driver announced he was leaving the team.