Yahya related to me from Malik from Ibn Shihab from Said ibn al-Musayyab, and from Abu Salama ibn Abd ar-Rahman, the same as that.Malik said, "Every forgetfulness which decreases from theprayer, prostrations for it come before the greeting, and everyforgetfulness which is an addition to the prayer, prostrations for itcome after the greeting."
App reference: Book 3, Hadith 65
USC-MSA web (English) reference: Book 3, Hadith 65
Arabic reference: Book 3, Hadith 212