While watching a religious ceremony he was set upon by some hoodlums, but was rescued by a local military official called Wang Teh-lu.
他途經笨港，在觀看祭孤魂法事時，被地方無賴圍毆，幸遇地方武官王得祿解救脫險。王得祿因此和嘉慶帝結下金蘭之交。以後王得祿在嘉慶帝的提拔下日漸騰達，曾任建威將軍、太子太師伯爵、福建浙江水師提督等。