The Apostle of Allah (ﷺ) performed two prostrations for forgetfulness after salutation and talking.
Sahih Muslim Book 5, Hadith 124