Summarize this article:

Shift your knees so they come towards your belly. Move your knees and your feet to the edge of the bed. Use your arms as support as you push yourself into a sitting position. Swing your legs over the side of the bed. You can also place a pillow between your legs to help you get up. To avoid any dizziness or nausea when you get up, take a long breath before you raise up off the bed. This will also prevent you from aggravating any back pain you might be feeling. Enlist the support of your partner or someone close by to help you get out of the lying position. Have the person grip your forearms and gently help you rise up from the bed.
Roll on your side, if you are not already on your side. Take a deep breath before you stand up. Ask someone for assistance.