 The local chief planned to sell him back to the Vietnamese, but Wu was rescued by the Pingxiang Magistrate, then was sent to Beijing to work as a eunuch in the palace.The "Đại Việt sử ký toàn thư" records that in 1467 in An Bang province of Dai Viet (now Quảng Ninh Province) a Chinese ship blew off course onto the shore.The Chinese were detained and not allowed to return to China as ordered by Le Thanh Tong.