FR 9440 then FR 1791 at Lisbon
Madrid → Lisbon → Luxembourg
Timetable, Lisbon time
20:25FR 9440 from Madrid at the gate
14:25FR 1791 to Luxembourg leaves the gate
18 h apart on the timetable, overnight
FR 1791 leaves 18 h after FR 9440 arrives on the timetable: more than half a day, so not a connection we count.