FR 3877 then AZ 2425 at Madrid
Tangier → Madrid → Lisbon
Timetable, Madrid time
22:35FR 3877 from Tangier at the gate
18:55AZ 2425 to Lisbon leaves the gatealso SV 6131, AM 6945, AR 7326, AD 7857
20 h 20 apart on the timetable, overnight
AZ 2425 leaves 20 h 20 after FR 3877 arrives on the timetable: more than half a day, so not a connection we count.