The Messenger of Allah ﷺ commanded me to do three things and forbade me from three.He commanded me to fast three days of every month, never to sleep without first praying witr, and to pray the two rakahs of Duha.He forbade me from turning my head during prayer like the turning of a fox, from squatting like the squatting of a monkey, and from pecking like the pecking of a rooster.
أمرني رسول الله ﷺ بثلاث ونهاني عن ثلاث، أمرني بصيام ثلاثة أيام من كل شهر، وأن لا أنام إلا على وتر، وركعتي الضحى. ونهاني عن الالتفات في الصلاة التفات الثعلب، وأقعى إقعاء القرد، وأنقر نقر الديك.
Bayhaqi (2/120) narrated it via Layth, from Mujahid, from Abu Hurairah, who related it. Layth is Ibn Abu Salim, who is truthful, but he became confused in his later years so his hadith could not be distinguished, and so was abandoned, however he has been corroborated.Imam Ahmad (7595) and Abu Dawud Tayalisi (2716) both narrated it from the hadith of Yazid bin Abu Ziyad, "someone told me who heard Abu Hurairah say, 'My close friend advised me of three things...'" and he related it. Yazid bin Abu Ziyad is Hashimi, who is daif. As for the unnamed narrator, he is Mujahid, as shown in the narration of Ahmad (8106) and as in the previous narration.Munziri, in Targheeb wa Tarheeb (794), attributed it to Ahmad and Abu Yaala, and said, "The isnad of Ahmad is hasan," and he said, "Ibn Abu Shayba narrated it in al-Musannaf, and he said, 'like the squatting of a monkey' instead of 'the dog.'"I say, in the first narration found in Imam Ahmad, it reads "like the squatting of the monkey," while in the second narration found in him it reads "like the squatting of the dog," and this is the one that Munziri mentioned.As for his statement, "with a hasan isnad," this is what he said, but it contains two flaws. The first is Yazid bin Abu Ziyad Hashimi, who is daif as already mentioned. The second is that the narrator from him is Sharik, who is Ibn Abdullah Nakhai, who has poor memory, although he has been corroborated in the first narration found in Ahmad and Abu Dawud Tayalisi.So when Yazid bin Abu Ziyad is combined with Layth bin Abu Salim, this lends strength to the text. Abu Zura said of Yazid bin Abu Ziyad, "He is weak, his hadith is written down but not relied upon as proof." Moreover, there is nothing objectionable in the text, rather each of the two parts has supporting evidence with the same meaning.