FR 6723 then I2 1743 at Madrid
Marrakesh → Madrid → Málaga
Timetable, Madrid time
22:15FR 6723 from Marrakesh at the gate
20:45I2 1743 to Málaga leaves the gatealso IB 1743
22 h 30 apart on the timetable, overnight
I2 1743 leaves 22 h 30 after FR 6723 arrives on the timetable: more than half a day, so not a connection we count.