Sahih Muslim 2287: The Pilgrimage (Hajj)
It is narrated from Hazrat Abdullah bin Amr bin al-As (ra) that he said: In the Farewell Pilgrimage the Messenger of Allah (saw) remained at Mina for the people. They were asking him (saw) questions. A man came and said: O Messenger of Allah (saw)! I did not know, and I shaved my hair before offering the sacrifice. He (saw) said: “Slaughter, and there is no harm.” Then another man came and said: O Messenger of Allah (saw)! I did not know, and I offered the sacrifice before throwing the pebbles at the Jamrahs. He (saw) said: “Throw the pebbles, there is no harm.” The narrator says: The Messenger of Allah (saw) was not asked about anything which had been done earlier or later without his (saw) saying: “Do it, there is no harm.”
AI-translated by Islam-Today