EW 7520 then LA 5743 at Barcelona
Hamburg → Barcelona → Málaga
Timetable, Barcelona time
16:20EW 7520 from Hamburg at the gate
13:00LA 5743 to Málaga leaves the gate
20 h 40 apart on the timetable, overnight
LA 5743 leaves 20 h 40 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.