You cannot catch a wild Lucario directly in Pokémon Pearl, but you can obtain one by hatching a Riolu that evolves into it.
Travel to Canalave and head into the cave there, where you will help a character named Riley. In gratitude, he gives you a Riolu egg. Hatch that egg and raise the Riolu, and it will eventually evolve into Lucario. One tip: bring only five Pokémon in your party so there is room to receive the egg.