Chapter - Section 2 Mishkat al-Masabih 2657

Arabic hadith text
عَن عَليّ قَالَ: أَتَاهُ رَجُلٌ فَقَالَ: يَا رَسُولَ اللَّهِ إِنِّي أَفَضْتُ قَبْلَ أَنْ أَحْلِقَ فَقَالَ: «احْلِقْ أَوْ قَصِّرْ وَلَا حَرَجَ» . وَجَاءَ آخَرُ فَقَالَ: ذَبَحْتُ قَبْلَ أَنْ أَرْمِيَ. قَالَ: «ارْمِ وَلَا حرج» . رَوَاهُ التِّرْمِذِيّ
Translation

‘Ali told of a man coming to God’s messenger and saying, “I hastened to Mecca before shaving.” He replied, “Shave (or clip), for no harm will come.” Another came and said, “I sacrificed before throwing the pebbles.” He replied, “Throw them, for no harm wil come.”Tirmidhi transmitted it.