Both are grammatical. The second contains a noun clause as the direct object of "saw".
The first is a little more complex. I think most people would say that "you" is the direct object of "saw". That would leave "stealing my stuff" as a participial phrase modifying "you".
Student or Learner