Sami Khedira has confirmed he is leaving Real Madrid at the end of the season, using social media to make the announcement on Saturday.