How do people get their babies to sleep in their own bed?

Asia • My husband and I have been ttc for 7 months, and just suffered through a heartbreaking ectopic pregnancy. My heart and body are hurting so much, I just want things to go back to normal.
Second night home and I am sleeping in the recliner again with my baby on my chest because she cries every time I lay her down, and my stomach is so sore from c-section, I can't keep getting up and down from my bed. I have tried putting her in her bassinet and in her swing, and I have tried letting her cry for a bit, but she won't just go to sleep. How do you get your babies to sleep in their own bed?