Justin Bieber has changed his life around in the past two years, going from hard-partying teen who got in trouble with the law to hit-making A lister.

And when talking to The Bert Show in an interview released this week, the 21 year-old Canadian revealed it was a higher power that helped turn it all around.

'God was telling me something,' the Purpose singer said. 'I am not going to go into detail of what I was doing and where I was at, but I was pretty lost and woke up one day and felt like God was telling me something.'

Scroll down video

A new Biebs: Justin Bieber, seen here in December with Corey Gamble, told The Bert Show, which aired this week, that his life turned around after God spoke to him when he was the most lost

The Sorry chart topper, who is dating model Hailey Baldwin, also said: 'I'm not super religious or anything but I just heard a voice and was like, "You know what? I'm going to change my life around. I'm going to switch up some things and put some stuff together."'

That led to the ex of Selena Gomez to take action which led to allowing people make fun of him on Comedy Central and also doing interviews where he apologized for his wild antics.

'I called my manager Scooter and said, "We need to fix it,"' added Justin.

See more Justin Bieber updates as he reveals voice urged him to change his life around

Time for a change: The 21-year-old has often referenced religion in his work, like he did here in 2013 during a show in Atlanta

He took a lot of blows: The star turned his image around when he allowed comedians to take pot shots at him on a Comedy Central Roast in March

The What Do You Mean? hit maker also said he still enjoys drinking and having a good time, but doesn't think that is at odds with his religious beliefs.

Bieber continued: 'We've going and celebrating all the time, getting drinks. I am 21 now so I can go out with my friends and be responsible and still have a good time.'

He added: 'What's weird is I am a Christian, I am a believer and often people are too conservative and I don't think it's wrong.'

Spiritual renewal! The Grammy nominee confessed on the radio programme that he isn't 'super religious' but that his faith inspired him to take things in a different direction; here he is seen with girlfriend Hailey Baldwin while in St Barts on New Year's Eve

Faith revival! 'I am not going to go into detail of what I was doing and where I was at, but I was pretty lost and woke up one day and felt like God was telling me something,' he added; here Bieber prayed after his well-received MTV VMA performance

'I'm stumbling over my words right now because I don't want to offend anybody but I believe you can go and have a good time, get some drinks and enjoy yourself and can be with girls.

'I don't think you need to be serious about it,' the Grammy nominee explained.

He then added: 'Loving God is a separate thing. But I don't think you have to love God and not be able to go out and enjoy yourself.'

The former teen heartthrob also said: 'As long as it's not provocative or intense or mean or evil. If you are living life based on loving God then just keep that in mind.'

In the same interview Justin joked that he felt used by Kourtney Kardashian, who UsWeekly claimed dated him from August until October.