Prince William has been close friends with David Beckham for a number of years.