This. Or degreaser to clean.
Motorcycle magazine also debunked the myth that WD-40 will ruin your chain's o-rings by soaking o-rings in WD-40 for a week or two and saw no degradation at all, so clean it with WD-40 if you like, just wax/ lube it after.
I like wax better than lube, for me, it...