There could be many reasons for weakness in a patient who is lying in bed.
1] General body weakness, for which you can give a good nutritious diet.
2] Deep breathing exercises are good for general well being.
3] Strengthening exercises for hip, knee and ankle.
4] Non weight bearing standing after 6/8 weeks.
5] Walking in walker.
6] Active exercises for upper limbs.