As others have said WD-40 is NOT a lubricant. WD = Water Displacement.
I use Tri-Flow on my chain, and Boeshield T-9 everywhere else. It is a "waterproof" lubricant. So I assume it has properties of WD-40, but also with a lubricant. Best of both worlds.