To claim Ash's Lucario in Pokemon Sword & Shield, you need to enter the following code in the Mystery Gift menu: HAD0UW0CATCH. You can access the Mystery Gift menu by pressing X, choosing Mystery Gift, and then selecting the 'Get a Mystery Gift with Code/Password' option.