It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "The hands are raised in seven places: at the beginning of the prayer, when one sees the House (of Allah), on (the hills of) Safa and Marwah, on the evening of Arafah, at Muzdalifah, at the two Jamrahs (for supplication), and at the funeral." Muhammad bin Yahya bin Abi Umar and al-Bayhaqi recorded it, and its chain has a break (inqita').
Hadith Takhrij«رواه محمد بن يحيى بن أبي عمر والبيهقي بسند فيه انقطاع» «أخرجه مجمع الزوائد ومنبع الفوائد برقم: 4857، وأخرجه المطالب العالية بزوائد المسانيد الثمانية برقم: 1201، وأخرجه معرفة السنن والآثار برقم: 9800، وأخرجه شرح السنة برقم: 1897»