袁枚
According to "What the Master Would Not Discuss", written by Yuan Mei during the Qing dynasty, Tu'er Shen was a man named Hu Tianbao () who fell in love with a very handsome imperial inspector of Fujian Province. One day he was caught peeping on the inspector through a bathroom wall, at which point he confessed his reluctant affections for the other man. The imperial inspector had Hu Tianbao sentenced to death by beating. One month after Hu Tianbao's death, he appeared to a man from his hometown in a dream, claiming that since his crime was one of love, the underworld officials decided to right the injustice by appointing him the god and safeguarder of homosexual affections.