I'm sure there was a brick scanning app that appeared a while ago, or try and find a number and enter it on Lego site [1], otherwise post a picture on BrickLink and I'm sure someone will know what it is! Then you can look on BrickLink or Rebrickable to find sets that it came from
[1] https://www.lego.com/en-gb/service/help/building_instruction...