I originally received it as a Riolu via wondertrade.
This is the pokemon before I modified it with pkhex (just changed my name in the pokemon before I posted it here).
448 - Lucario - 016AF5E6D8BD.pk7
Tried to trade this but got an error.
After changing the Quick Attack relearn move to something else it was possible to trade it.
448 - Lucario - BA85F5E6D8BD.pk7