AD 8000 then I2 1743 at Madrid
Recife → Madrid → Málaga
Timetable, Madrid time
08:25AD 8000 from Recife at the gate
20:45I2 1743 to Málaga leaves the gatealso IB 1743
12 h 20 apart on the timetable
I2 1743 leaves 12 h 20 after AD 8000 arrives on the timetable: more than half a day, so not a connection we count.