For home exercises,
I would recommend seeing a physician first to make sure there are no disc problems or other issues.
If it is just sore muscles, i would recommend stretching exercises. See:
strengthen neck muscles as well as work on posture and desk set up for ergonomic corrections. Hope that helps!