This hadith is in musnad Ahmad and in as-Sunan al-Kobra of Imam al-Bayhaqi and you will find it in tafsir ibn Kathir on verse (2:102) who quoted it saying and here I'll quote the hadith on the matter and discussion if his sanad (chain) is sahih (sane) and whether it is marfo' (correctly) and discussion of what was mentioned about it:
ذكر الحديث الوارد في ذلك إن صح سنده ورفعه وبيان الكلام عليه :
In this discussion he (ibn Kathir) says the narrators of this chain except for Musa ibn Jubayr موسى بن جبير are narrators of the sahih hadiths. But Musa ibn Jubayr is an unkonwn and he's apparently the only one who narrated this hadith from Nafi' from ibn 'Omar. Also note that his student (or the person who narrted from him) Zuhayr ibn Muhammad زهير بن محمد is not an all over accepted narrator as he is also known for manakeer! So the chain on the whole is weak, and it is a marfo' narration (not mursal!) as according the "narration" ibn 'Omar said that our Prophet () said so!
Al-Bayhaqi and ibn Kathir also mentioned other narrations (two different chains) saying ibn 'Omar has narrated this from Ka'ab (al-Ahbar) which they both considered as more sahih (authentic), so in this case it isn't a hadith rather than an narration based on knowledge of people of the book as Ka'ab was a former Jew.