FR 3877 then IB 421 at Madrid
Tangier → Madrid → Barcelona
Timetable, Madrid time
22:35FR 3877 from Tangier at the gate
18:00IB 421 to Barcelona leaves the gatealso IB 421S, LL 3021, VY 5122, AV 6170, QR 6971
19 h 25 apart on the timetable, overnight
IB 421 leaves 19 h 25 after FR 3877 arrives on the timetable: more than half a day, so not a connection we count.