FR 5057 then FR 2015 at Madrid
Dakhla → Madrid → Lanzarote
Timetable, Madrid time
13:25FR 5057 from Dakhla at the gate
10:35FR 2015 to Lanzarote leaves the gate
21 h 10 apart on the timetable, overnight
FR 2015 leaves 21 h 10 after FR 5057 arrives on the timetable: more than half a day, so not a connection we count.