Forgiveness for sins

Q: If we had committed any sin in the past and we are not sure if it was a sin, should we ask any Mufti or Aalim regarding that thing or just repent from all sins and move on in life believing Allah has forgiven us?