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