IB 774 then FR 9602 at Madrid
Hamburg → Madrid → Rome
Timetable, Madrid time
18:55IB 774 from Hamburg at the gate
09:20FR 9602 to Rome leaves the gate
14 h 25 apart on the timetable, overnight
FR 9602 leaves 14 h 25 after IB 774 arrives on the timetable: more than half a day, so not a connection we count.