I recently put my 2005 dodge Dakota in 4hi when I was on a slightly muddy dirt on 2005 Dodge Dakota

road I herd a clicking noise that I thought to just put a stick lodged underneath I looked under nothing was there I put it back it 2wd and now I here this clicking noise every time I take off and it only stops when I go faster I tried putting truck in and out of 4wd thinking the hubs might not have locked right it sounds like its coming from transfer case

2 answers
could be a u joint
agree with goodguy