How do you get a Pokemon with the ability trick?

well.. you search around and if i remember right kadabra have the ability trick