[While You Were Sleeping] Jung Jae Chan (Lee Jong Suk), es un fiscal novato sin emociones y asocial, sin miedo a decir lo que piensa. Su naturaleza asocial le permite evaluar casos sin involucrar sus sentimientos e investiga todo de manera más fría y calculadora. Siempre era el último en clase durante sus días de escuela media, pero trabaja duro para cumplir las expectativas de su padres. Nam Hong Joo (Suzy), es una ex-periodista que raramente sale de casa y está desempleada. Ella solía admirar y ser fan de Jung Jae Chan que es una estrella en ascenso en la profesión legal. Desde que era pequeña puede ver visiones del futuro en sus sueños sobre cosas malas que sucederán haciendo que siempre se sienta nerviosa. Ella acude a Jae Chan por ayuda. Él a pesar de no querer involucrarse con Hong Joo no tiene mas remedio que impedir que estos eventos ocurran.
Hong Joo's dreams always come true. She dreams of hugging a man whom she has never met and is shocked at her actions. On the night of Valentine's Day, she is worried about her mom and hurries home to see her.
Jae Chan has a dream about Hong Joo. He feels that he must prevent the events of his dreams from actually happening and tries his best to make sure that the accident never happens.
Jae Chan finds out that Hong Joo has precognitive dreams on a regular basis and visits her after dreaming of his younger brother, Seung Won, becoming a murderer.
Jae Chan and Hong Joo meet before the situation becomes irreversible. Before things get ugly, Jae Chan gets to Seung Won, and Hong Joo improvises so that things turn out differently from her dream.
Woo Tak has a precognitive dream that shows Hong Joo getting injured. He brings Jae Chan along to where it actually happens, so Jae Chan is able to prevent the injury from happening.
As Jae Chan, Woo Tak and Hong Joo begin to alter the future by preventing the events from happening, Hong Joo gains hope that perhaps her fate isn't sealed.
To prevent the case, Jae Chan asks Hong Joo to remember the details of incident if anything happens, so that he can find her after seeing in his precognitive dream.
Jae Chan arrives to the scene of the crime to find out Woo Tak has been stabbed. He goes after Dae Hee and manages to arrest him. Jae Chan works hard to make sure that Dae Hee is prosecuted for his crimes.
Hak Young is a friend of Woo Tak, so Woo Tak convinces Hak Young to turn himself in. Jae Chan has to prosecute Hak Young, but there’s not enough evidence to do so.
Hak Young is released and set to be investigated without detention. Thanks to a comment left by a netizen, Hong Joo figures out the cause of the strange markings on the floor of Yoo Su Kyung's apartment.
Jae Chan is released from the hospital and stays with Hong Joo for two days. Woo Tak and Hong Joo both dream about Jae Chan. In their dream, Jae Chan is in charge of a case that results in his resignation from the prosecution.
Jae Chan charges Moon Tae Min for murder despite everyone’s disapproval. He has to prove that Lee Hwan didn’t die from the organ transplant, but Yu Beom has a strong argument that Jae Chan can’t win over.
Hong Joo goes to Criminal Division Three to follow a prosecutor for three days for an article, and Jae Chan is worried that he will embarrass himself in front of her. Meanwhile, a cellphone thief provides evidence for a past case.
Woo Joo and Hee Min look into the arson case, and Ji Gwang and Jae Chan reinvestigate the IV drip serial murder case. Hong Joo also begins to look into the case. Meanwhile, Yu Beom receives a mysterious text message from the real killer.
Yu Beom is on trial for manipulating the murder of Ha Ju Won. Before the trial, Dam Dong suspects that Yu Beom will try to leave the country. He tells Jae Chan, who tells Woo Joo that they must a travel ban preventing Yu Beom from leaving.