AA 8762 then FR 3876 at Madrid
Valencia → Madrid → Tangier
Timetable, Madrid time
07:10AA 8762 from Valencia at the gate
06:10FR 3876 to Tangier leaves the gate
23 h apart on the timetable, overnight
FR 3876 leaves 23 h after AA 8762 arrives on the timetable: more than half a day, so not a connection we count.