The German has spent 12 years at the club.
The former Burnley boss replaces Thomas Tuchel on a contract until 2027.
The Bundesliga club are interested in signing the 20-year-old from Crystal Palace as they hope to increase their midfield options this summer
Barcelona hired Hansi Flick to replace former manager Xavi, the Spanish La Liga soccer club announced Wednesday.