مُسْنَدُ أَحْمَدَ
Musnad Ahmad 2714
Musnad of 'Abdullah bin al-'Abbas bin 'Abdul-Muttalib from the Prophet
It was narrated from Ibn 'Abbas (رضي الله عنه) that On the Day of Sacrifice, the Messenger of Allah (ﷺ) was asked about a man who shaved his head before stoning the Jamrah, or offered a sacrifice, and other cases of doing one ritual before or after another, and the Messenger of Allah (ﷺ) would say: “No problem, no problem.”
Musnad Ahmad 2731A saheeh hadeeth; this is a hasan isnad]