How did Onesimus become a believer?

Through Paul's witnessing while Paul was in prison.

Watch the Teaching: How Should a Christian Act in the Workplace?