DE 9272 then FR 2389 at Madrid
Munich → Madrid → Tetouan
Timetable, Madrid time
15:00DE 9272 from Munich at the gate
14:05FR 2389 to Tetouan leaves the gate
23 h 05 apart on the timetable, overnight
FR 2389 leaves 23 h 05 after DE 9272 arrives on the timetable: more than half a day, so not a connection we count.