There are some clever tricks to train your dog to do out there. I have never seen anyone to teach their dog to say prayers. My guess would be that you would have to teach the dog to place its feet on your arm. You may be able to start with putting the your arm under the dogs paws and progress to having them sit up and put the paws on you. Then it seems like you could get them to tuck their head in with just a little luring.