Declaration of Prophethood

In the first three years after the first revelation, Prophet Muhammad   invited people to Islam in private. After three years, by the command of Allah (S), he started preaching in public. He reached out to the leaders of Quraish and invited them to worship one God only.