A regular starter during the Basque team's run in the Copa del Rey, Hernandez helped them reach the final for the first time in their 91-year history. During the decisive match on 27 May 2017, he scored the equaliser through a direct free kick in an eventual 1–3 loss against Barcelona.