As he lay dying of pain, he took refuge on a post until someone heard him