The Messenger of Allah ﷺ said, "Whoever is uncertain about his prayer should perform two prostrations after giving the closing salutation."
حدثنا علي بن إسحاق أنبأنا عبد الله أنبأنا ابن جريج حدثنا عبد الله بن مسافع عن عقبة بن محمد بن الحارث فذكر مثله بإسناده