Assalamu alaikum wa rehmatAllah,
If this is a recurring problem in every salah, you need to work on developing khushoo (focus and attention) in your salah. If you are not certain, assume you didn’t perform it and do it and then offer two prostration s of sahu after Salam.