It could be just the bed if the pain is in back or neck, bed will generally not cause pain in other joints.
Next Steps
Try sleeping on another bed and see. But bed will not help in other joints pain like knee or hands. If the pain is in other joints then get an RA factor, ESR and anti CCP done
Health Tips
don't worry, get the tests done and tell us