AA 8676 then IB 507 at Madrid
Bilbao → Madrid → Málaga
Timetable, Madrid time
14:45AA 8676 from Bilbao at the gate
19:35IB 507 to Málaga leaves the gatealso AY 4807
4 h 50 apart on the timetable
The last days
AA 8676 and IB 507 weren’t both flown 15 min to 12 h apart in the last 21 days.
Statistics from past flights, not live flight information. Always check times and your connection with your airline, and don’t base travel or booking decisions on these numbers.