After the Prophet (pbuh) received his first revelation, he told his wife Khadija and later her cousin Waraqa bin Nawfal about the event.
After verses from Surah Mudaththir were revealed to him, the revelation came frequently and regularly.
For three years the Prophet (pbuh) preached and practised in secret.
The Prophet (saw) started to meet his companions at Dar al-Arqam, the home of the companion al-Arqam, a few months after revelation.
The Prophet (pbuh) would meet and teach these new converts in secret from the revelations he was continuing to receive.
The Muslims prayed twice a day, in the morning and evening. They would pray and practise their faith in secret, often praying in the mountains.
After there were more than 40 or so converts it could not be kept a secret any more.
He called his own clan to dinner;
After the revelation to warn his nearest relatives (26:214), the Prophet (pbuh) took to Mount Safa and invited the Quraysh to believe in one God and reject idol worship.
And warn, [O Muhammad], your closest kindred. (Surah Ash-Shu'ara, 26:214)
The Quraysh rejected the Prophet’s message after open preaching, and being threatened by the new message, started to persecute the Muslims.