Recently, Atangana and Baleanu have defined a new fractional derivative which has a nonlocal and non-singular kernel. It is called the Atangana–Baleanu derivative. In this paper we present a numerical technique to obtain solution of fractional differential equations containing Atangana–Baleanu derivative. For this purpose, we use the operational matrices based on Genocchi polynomials together with the collocation points which help us to reduce the problem to a system of algebraic equations. An error bound for the error of the operational matrix of the fractional derivative is introduced. Finally, some examples are given to illustrate the applicability and efficiency of the proposed method.