SN 3722 then VY 2151 at Brussels
Madrid → Brussels → Málaga
Timetable, Brussels time
14:50SN 3722 from Madrid at the gate
13:30VY 2151 to Málaga leaves the gate
22 h 40 apart on the timetable, overnight
VY 2151 leaves 22 h 40 after SN 3722 arrives on the timetable: more than half a day, so not a connection we count.