Do not worry. Pain in arms and shoulder generally occurs after sleeping. This is mostly because of your sleeping position which we take unconsciously while sleeping. If you are sure about your sleeping posittion then consult a doctor as it can become a permanent problem.