Matthew 7:29
because He taught as one who had authority, and not as their scribes.
What it says
They recognize his authority and distinguish it from the scribes.
What it is doing
The verse names the source of their astonishment.
In context
28When Jesus had finished saying these things, the crowds were astonished at His teaching, 29because He taught as one who had authority, and not as their scribes.