AA 5031 then AA 5038 at Dulles
Morgantown → Washington → Lynchburg
Timetable, Washington time
09:10AA 5031 from Morgantown at the gate
08:30AA 5038 to Lynchburg leaves the gate
23 h 20 apart on the timetable, overnight
AA 5038 leaves 23 h 20 after AA 5031 arrives on the timetable: more than half a day, so not a connection we count.