The statement is false.
Take and on the interval and if and 0 other wise. This shows that the statement is false for the Riemann integral.
For Lebesgue integrable take on a set and is not Lebesgue measurable, and 0 else where. Then is not Lebesgue integrable.