FR 3877 then FR 2766 at Madrid
Tangier → Madrid → Prague
Timetable, Madrid time
22:35FR 3877 from Tangier at the gate
18:20FR 2766 to Prague leaves the gate
19 h 45 apart on the timetable, overnight
FR 2766 leaves 19 h 45 after FR 3877 arrives on the timetable: more than half a day, so not a connection we count.