MS 951 then JL 876 at Pudong
Cairo → Shanghai → Tokyo Narita
Timetable, Shanghai time
14:55MS 951 from Cairo at the gate
14:00JL 876 to Tokyo Narita leaves the gate
23 h 05 apart on the timetable, overnight
JL 876 leaves 23 h 05 after MS 951 arrives on the timetable: more than half a day, so not a connection we count.