Exactly how are moving expenses claimed against your taxes ?

For example if I spent $50,000 on moving expenses in 1 move (realtor commission and other expenses etc) would I get the total of $50,000 back as a tax refund spread over the next few years ? 

Or does it work differently ? 

I am not sure how the process works.

I know that may seem a stupid question, I have hunted all over the internet trying to find the answer. 

I would really appreciate any assistance.

Thanks in advance.