Some refinements and reverses of the Cauchy-Bunyakovsky-Schwarz inequality for the Lebesgue integral in measurable spaces are given. Results for the discrete case are pointed out as well.