IB 601 then AT 831 at Brussels
Madrid → Brussels → Rabat
Timetable, Brussels time
19:00IB 601 from Madrid at the gate
13:10AT 831 to Rabat leaves the gate
18 h 10 apart on the timetable, overnight
AT 831 leaves 18 h 10 after IB 601 arrives on the timetable: more than half a day, so not a connection we count.