3O 391 then AV 2506 at Madrid
Tangier → Madrid → Lisbon
Timetable, Madrid time
18:353O 391 from Tangier at the gate
18:00AV 2506 to Lisbon leaves the gatealso LO 4763, EK 4859, AD 7273, S4 8963
23 h 25 apart on the timetable, overnight
AV 2506 leaves 23 h 25 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.