When the Messenger of Allah ﷺ began the prayer, he would raise his hands to the level of his shoulders, and when he raised his head from the bowing, he would raise them in the same way, saying, "Allah hears whoever praises Him. Our Lord, to You belongs all praise." He did not do this when prostrating.
إن رسول الله ﷺ كان إذا افتتح الصلاة رفع يديه حذو منكبيه، وإذا رفع رأسه من الركوع رفعهما كذلك أيضا وقال: سمع الله لمن حمده ربنا ولك الحمد، وكان لا يفعل ذلك السجود.
Malik related it in the Book of Prayer (16) from Ibn Shihab, from Salim bin Abdullah, from Abdullah bin Umar, mentioning something similar, but Malik did not mention raising the hands at the ruku. However, Bukhari related it in the Book of Adhan (735) from Abdullah bin Maslama, from Malik with his chain of transmission, "The Messenger of Allah ﷺ used to raise his hands level with his shoulders when he began the prayer, when he said the takbir for the ruku, and when he raised his head from the ruku he would raise them likewise as well."Al-Hafiz said, "Abdullah bin Maslama is Qanabi, and his narration here from Malik differs from what appears in his narration from him in the Muwatta. Ismaili related it through his narration with the wording of the Muwatta. Daraqutni said, Shafii and Qanabi related it, and he listed a group of narrators of the Muwatta who did not mention the raising of the hands at the ruku. He said, and Ibn Mubarak, Ibn Mahdi, Qattan, and others related it from Malik outside the Muwatta with this addition affirmed. Ibn Abdul-Barr said, everyone who related it from Ibn Shihab affirmed it, except for Malik specifically in the Muwatta."I say, this is indeed the case, for Bukhari related it in the Book of Adhan from Yunus (736), and Muslim related it in the Book of Prayer (390) from Sufyan bin Uyayna and Ibn Jurayj, all of them from Zuhri, and in their hadith, "The Messenger of Allah ﷺ, when he began the prayer, would raise his hands until they were level with his shoulders, then say the takbir. When he wanted to bow for the ruku he would do the same, and when he raised up from the ruku he would do the same, but he did not do this when he raised his head from the sujud." He also related it through the route of Aqeel and Yunus, from Zuhri, but did not quote the wording in full.Ibn Abdul-Barr said in Tamhid, mentioning a group of scholars, that the omission of the raising of the hands at the ruku occurred from one direction only, for a group of reliable memorizers related both versions from him. End of quote. See Nasb Raya (1/408).It may be that among these was Abdullah bin Maslama Qanabi, from whom Bukhari related, but this is complicated by what Daraqutni mentioned in Gharaib Malik, that Malik did not mention the raising at the ruku in the Muwatta, but mentioned it outside the Muwatta, relating it to twenty reliable memorizers, among them Muhammad bin Hasan Shaybani, Yahya bin Saeed Qattan, Abdullah bin Mubarak, Abdul-Rahman bin Mahdi, Ibn Wahb, and others. A group of the narrators of the Muwatta differed from them and related it from Malik without the raising at the ruku, among them Imam Shafii, Qanabi, Yahya bin Yahya, and others. End of quote.I say, this has been established from Ibn Umar through a route other than this one, including what Imam Ahmad related (6328) from Muhammad bin Fudayl, from Asim bin Kulayb, from Muharib bin Dithar, who said, I saw Ibn Umar raising his hands whenever he bowed for the ruku and whenever he raised his head from the ruku. He said, so I asked him, what is this? He said, the Prophet ﷺ, when he stood up after the two rakahs, would say the takbir and raise his hands.Abu Dawud related it (743) through two routes from Muhammad bin Fudayl, except that he did not mention Ibn Umar's action. Its chain is hasan on account of Asim bin Kulayb, for he is "truthful" and is among the narrators of Muslim, while the rest of its narrators are narrators of the two Shaykhs.In the hadith of Ibn Umar there is evidence that he used to raise his hands to his shoulders, and this is the view of Shafii and the majority. Abu Hanifa took the view of the hadith of Malik bin Huwayrith, which will come after this, in which it states that he used to raise his hands until they were level with his ears, and in one narration, with the tops of his ears. Both hadiths are sahih, and they should be understood as permitting the raising of the hands sometimes to the shoulders and sometimes to the ears, without preferring or favoring one over the other.