EC 7639 then AA 8861 at Madrid
Lisbon → Madrid → Lanzarote
Timetable, Madrid time
09:35EC 7639 from Lisbon at the gate
08:45AA 8861 to Lanzarote leaves the gate
23 h 10 apart on the timetable, overnight
AA 8861 leaves 23 h 10 after EC 7639 arrives on the timetable: more than half a day, so not a connection we count.