The Prophet (ﷺ) prostrated after the salam when he was not sure.
Sunan an-Nasa'i Book 13, Hadith 57