Minecraft wiki entry for Bow, associated text: Arrows that hit solid blocks become stuck and can be retrieved, unless the arrow was shot by a bow enchanted with Infinity, a player in Creative mode, or a mob.