FR 9601 then FR 9440 at Madrid
Rome → Madrid → Lisbon
Timetable, Madrid time
21:20FR 9601 from Rome at the gate
19:25FR 9440 to Lisbon leaves the gate
22 h 05 apart on the timetable, overnight
FR 9440 leaves 22 h 05 after FR 9601 arrives on the timetable: more than half a day, so not a connection we count.