Welcome to this forum! There are a lot of threads about similar problems in the transmission section. Sometimes it could be valve body related. Other times it could be a shift fork in the transfer case. A little more information would be helpful to diagnose the problem (mileage, diagnostic codes, flashing overdrive light, any recent transmission fluid changes, any related recent repairs, etc.).