MS 753 then FR 2066 at Madrid
Cairo → Madrid → Ibiza
Timetable, Madrid time
13:50MS 753 from Cairo at the gate
13:45FR 2066 to Ibiza leaves the gate
23 h 55 apart on the timetable, overnight
FR 2066 leaves 23 h 55 after MS 753 arrives on the timetable: more than half a day, so not a connection we count.