Question
In which hadith book does the Prophet ﷺ say that his Allah has commanded him to let the beard grow and to trim the moustache?
Answer
الحمد لله، والصلاة والسلام علىٰ رسول الله، أما بعد!
These words are found in al-Qurtubi, Volume 3, Page 124.
In any case, the command of the Messenger of Allah ﷺ is in fact the command of Allah the Most High, as is stated in the Quran:
{مَنْ یُّطِعِ الرَّسُوْلَ فَقَدْ اَطَاعَ اﷲَ}
Reference: Para 5, Ruku 8
[Whoever obeys the Messenger of Allah ﷺ has obeyed Allah the Most High]
ھذا ما عندي والله أعلم بالصواب