All the way to the bank

Which expression came first, “to laugh all the way to the bank” or “to cry all the way to the bank”? And how do language wizards determine things like this?

I’ve never heard of “cry all the way to the bank”.

When would you use it?