I had a similar problem with my truck and took it to the dealership and they told me it was the body mounts. Under certain conditions, normal movement between the frame and the #1, #2 or #3 body mounts may cause a pop or clunk type noise to occur.
It was a known problem for 2004 -2008...