Help me !!!

I exclusively breastfed my 3rd baby until he was 11 months old and ever since I stopped he will not sleep in his own bed. He is 2 years old now lol and will not sleep in his own bed. How can I get him to start sleeping in his bed? we have tried everything even staying asleep with him on his bed and he still makes his way to our bed. My husband and I need our alone time. I'm pregnant with our 4th and due in 12 days lol I don't plan on doing the same thing I did with my 3rd. I use to breastfed him in bed and let him stay with me instead of putting him back in the crib! I need

some advice Mom's.