It was targeted at his heart but he moved so it missed it’s original target and struck the right side of his chest.
Even though he dodged, he was still hit by what seemed like an illusory knife that stabbed the right side of his chest. It was targeted at his heart. However, Lucifer moved in the last moment, making it miss his heart.