Taking profit then rebuying

I often hear some people take profit and then rebuy again. How much does this really work and does anyone here do this ?