\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[brazilian,brazil]{babel}
\usepackage{fancyhdr,setspace,float,graphicx,lscape,array,longtable,colortbl,amsmath,amssymb,booktabs,multirow,hyperref,pdfpages,tocloft,titlesec,lipsum,natbib}
\usepackage[sectionbib]{chapterbib}
\begin{document}
%***
\clearpage
\linenumbers % numeração de linhas
\modulolinenumbers[3] % numeração de linhas
%***
% Texto
%***
\chapter{Nam dui ligula}
%***
\lipsum[2-2] Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi
auctor lorem non justo \citep{lamport1986latex}.
\section{Euismod sodales}
\lipsum[2-3]
%*** APAGAR O EXEMPLO ACIMA







%*** REFERÊNCIAS
\bibliography{referencias.bib}
\bibliographystyle{apalike}
\end{document}
