It is narrated from Abdullah bin Abbas (may Allah be pleased with them both) that he said from the Prophet (peace be upon him) that he said: "The hands should be raised in prayer, and when seeing the Ka'bah, then at Safa and Marwah, on the night of Arafah, at Muzdalifah, near the two Jamrahs, and over the deceased."
Hadith Referenceمسند الإمام الشافعي / كتاب الحج / 950
Hadith Takhrijإسناده ضعيف جداً لانقطاعه بين ابن جريج ومقسم: أخرجه البيهقي: 5/ 72 - وفي المعرفة السنن والآثار له (2910) - والبغوي (1897)۔