Lin Chen traveled through time and was currently on death row in the Sky Prison. The Lin family was imprisoned due to the theft of three million taels of military pay for the Northern Territory, and was to be executed three days later. With the system activated and the novice gift pack, Lin Chen relied on his criminal investigation experience to find the core doubts of the case, seized the opportunity of the eldest princess Zhao Lingxi to inspect the prison, and won the opportunity for a three-day retrial.
Lin Chen was appointed by the emperor to serve as a judge for Dali Temple because of his ability to solve crimes. He successively solved strange cases such as a serial disappearance of a girl, a fraud and murder case in the Gongyuan, and a poisoning and murder case in an official's secret room. Every time a case is solved, the system rewards are filled up, and the cultivation level steadily breaks through to the innate realm. At the same time, the relationship with Zhao Lingxi, Liu Ruyan, and Bai Su continues to heat up, and the harem group gradually takes shape.
Lin Chen discovered that behind all the cases, there was a faint link to the struggle between the prince and his son, and the military pay case was just an appetizer. The fight between the prince and the second prince intensified, and they even colluded with evil sects and remnants of the previous dynasty to create many murderous crimes to frame their opponents. Lin Chen stuck to the bottom line, circled in the whirlpool of the court, uncovered the masterminds behind the scenes, and became the unshakable "Dinghaishen Needle" of the Dayan Court.
The shocking conspiracy of the remnants of the previous dynasty has surfaced - a shocking injustice case that occurred when Dayan founded the country is now going to overthrow the entire dynasty. Lin Chen joined hands with the harem group to solve a series of mysteries that spanned decades and smashed the rebellion conspiracy. In the final battle, relying on the awe-inspiring righteousness accumulated from solving strange cases in the world, he broke through the shackles, stepped into the land of fairyland, and became a legend in Great Yan. The ending can be either forward or backward, either taking the power of the harem to rule the country, or taking a beautiful woman to roam the world and become the world's best detective.