This restriction applies specifically to the European Championship final between Spain and England.
The decision means that Lamine Yamal will not be able to participate in extra time if the match goes into that phase.
German laws prohibit Under-18s from working past 11pm on a Sunday, risking a €30,000 fine for Spain if Lamal plays extra time.
Lamal has been a standout player for Spain at Euro 2024, being the youngest player at the finals and the youngest scorer in the knockout rounds.
Despite the risk of a fine, Spain is likely to keep Lamal on the pitch for the European Championship final against England.
Lamal will aim to make history in the final and celebrate his 17th birthday with a special performance in Berlin.