Last updated on .From the section Championship

Pablo Hernandez's double was his second brace in three games after also netting twice in a 3-0 win at Reading on 12 March

Pablo Hernandez's double moved Leeds back into the Championship's automatic promotion spots as they twice came from behind to beat struggling Millwall.

The Spaniard's late winner took his season's tally to 12 goals as the Whites leapfrogged Sheffield United to go second, two points clear of their Yorkshire rivals.

A Ben Thompson strike and a Ben Marshall penalty twice put Millwall ahead but they were pegged back by Hernandez's first and a Luke Ayling header.

That meant Patrick Bamford's first-half penalty miss did not prove costly, while defeat dropped Millwall two places to 21st and they stay just a point above the bottom three.

On an afternoon that could foreshadow the twists and turns still to come in the promotion race, Leeds looked set to lose ground on their rivals for much of the day, only to end up back in the top two due to the Blades twice surrendering a lead to lose to Bristol City.

That they did so was down chiefly to Hernandez, who again stepped up for a Leeds side still missing injured top scorer Kemar Roofe.

He inspired Leeds' fightback after they fell behind early on, Thompson heading home Mahlon Romeo's cross for the Millwall midfielder's third goal in two games.

Lions keeper David Martin thwarted Leeds' initial retorts, saving Bamford's penalty with his legs after Jed Wallace brought down Ezgjan Alioski and denying Jack Harrison from Hernandez's through ball.

But he was left helpless when Hernandez clinically steered Ayling's pull-back into the bottom corner to bring Leeds level.

Marshall put Millwall back ahead from the spot after being fouled by Liam Cooper, and when Martin twice foiled Hernandez it seemed the keeper would redeem his recent FA Cup howler against Brighton.

However, Ayling headed home Barry Douglas' cross to bring Leeds level for a second time before Hernandez slid home Tyler Roberts' cut-back to win it.

Leeds United boss Marcelo Bielsa:

"Some days we have to spend more time than we usually would need to spend to get what we deserve.

"We never feel we are going to lose. We insist on trying to change the result by keeping our style. When a team has the skill to overcome so much adversity, they deserve admiration."

On Sheffield United's defeat by Bristol City: "Every game we play we can't be thinking about the result of any other team."

Millwall manager Neil Harris:

"It was probably a fair result on possession and chances created.

"We were leading twice in the game and for us to come to Elland Road, it was a good performance in so many ways.

"We can talk about how good we were on the counter-attack, with the ball, how well we defended at times and stood strong at a sold-out Elland Road, but ultimately we got nothing from the game.

"Leeds are a top side and we ran them very close today."