 After a loan spell at Al-Nasr Dubai, Hernández returned to Spain and its top level on 31 August 2015, after agreeing to a one-year loan deal with Rayo Vallecano.He started regularly for the team from the Madrid outskirts, who ended the campaign with relegation.On 2 August 2016, Hernández joined Championship club Leeds United on a six-month loan deal, with the option of a permanent move in January 2017, linking up with former Swansea manager Garry Monk and being given the number 19 shirt.