“And with great power the apostles gave witness to the resurrection of the Lord Jesus. And great grace was upon them all. Nor was there anyone among them who lacked; for all who were possessors of lands or houses sold them, and brought the proceeds of the things that were sold, and laid them at the apostles’ feet; and they distributed to each as anyone had need. And Joses, who was also named Barnabas by the apostles (which is translated Son of Encouragement), a Levite of the country of Cyprus, having land, sold it, and brought the money and laid it at the apostles’ feet.”
Acts 4:33-37 NKJV
https://www.bible.com/114/act.4.33-37.nkjv
Jesus taught and practice capitalism, communism and socialism. BTW, communism and socialism overlaps, they are relative to each other. In any society under the sun, I declare says the Lord, righteousness exalts a nation and sin/fault is a reproach to any people!