FR 9441 then FR 9493 at Madrid
Lisbon → Madrid → Pisa
Timetable, Madrid time
23:15FR 9441 from Lisbon at the gate
21:45FR 9493 to Pisa leaves the gate
22 h 30 apart on the timetable, overnight
FR 9493 leaves 22 h 30 after FR 9441 arrives on the timetable: more than half a day, so not a connection we count.