Barcelona won an enthralling Clasico 3-2 away to Madrid on Sunday, Lionel Messi scoring his second of the match – and 500th club goal – with the last kick of the game.
Ivan Rakitic was the other Barca scorer in an absorbing contest that also saw Sergio Ramos sent off, while Casemiro and James Rodriguez were on target for Madrid.
Guardiola won successive league matches at the Bernabeu in 2009 and 2010, his side registering 6-2 and 2-0 victories.
2 - Luis Enrique is the 2nd Barcelona manager to win back-to-back La Liga games vs Real Madrid at Bernabeu, after Guardiola (2). Farewell pic.twitter.com/aenXhXsmrj— OptaJose (@OptaJose) April 23, 2017
Luis Enrique, who is leaving Barca at the end of the season, oversaw a famous 4-0 win over a Madrid team managed by Rafael Benitez in November 2015, with this latest victory giving him two on the bounce.
Zinedine Zidane, meanwhile, suffered the first defeat of his Clasico managerial career in his third match against Barca.