Acts 2:44-45 English Standard Version (ESV)
44 And all who believed were together and had all things in common. 45 And they were selling their possessions and belongings and distributing the proceeds to all, as any had need.
https://www.biblegateway.com/passage/?search=Acts+2:44-45&version=ESV
1) Voluntary sharing is absolutely not socialism. Socialism is government-directed, involuntary wealth redistribution.
2) They faced intense persecution and they knew the end was coming, that they'd have eventually flee from Jerusalem. It's hard to flee with lots of possessions, and you can't take your land with you.
3) The Bible's idea of someone in "need" is not anything close to a socialist's or idiot Dem's idea of need. They only supported each other, not outsiders. They only supported those who contributed time to the church, and who were of good character. They only supported the non-lazy who had no one else to support them.