For small $\theta$:
$$ \sin\theta \approx \theta $$
Equation becomes:
$$ \ddot{\theta} + \frac{g}{l}\theta = 0 $$