You’ll have to forgive the vulgarity of that headline and it may sound like an odd question, but apparently he did according to the late historian Paul M. Zall, who wrote about early American history and figures like Benjamin Franklin and John Adams.
Zall’s 2007 book, Abe Lincoln’s Legacy of Laughter, quotes Lincoln himself recalling the event during his youth while trying to prank a friend of his.
“‘I would rather see Golliher than any man living, he played me a dirty trick once and I want to pay him up. One Sunday Golliher and another boy and myself were out in the woods on knob Creek playing and hunting around for young squirels, when I climed up a tree and left Austin and the other boy on the grown. Golliher shut his eyes like he was asleep. I noticed his hat sat straight with the reverse side up I thought I would shit in his hat. Gollier was watching and when I let the load drop he swaped hats and my hat caught the whole charge.’ At this recital the President laughed heartily.”
You can view the page here as well.