There is a RyanAir flight that arrives at the Madrid airport at 9:05a.
There might be an overnight train that arrives in Madrid 8:00. (I'm not returning until October, and it does not list the overnight train as of now).
I have no idea where the train arrives in Madrid--at the airport or do...