LO 4764 then FR 394 at Madrid
Lisbon → Madrid → Ibiza
Timetable, Madrid time
14:05LO 4764 from Lisbon at the gate
06:40FR 394 to Ibiza leaves the gate
16 h 35 apart on the timetable, overnight
FR 394 leaves 16 h 35 after LO 4764 arrives on the timetable: more than half a day, so not a connection we count.