3O 391 then FR 9493 at Madrid
Tangier → Madrid → Pisa
Timetable, Madrid time
18:353O 391 from Tangier at the gate
18:10FR 9493 to Pisa leaves the gate
23 h 35 apart on the timetable, overnight
FR 9493 leaves 23 h 35 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.