This paper aims to extend the Caputo–Atangana–Baleanu ($ABC$
A
B
C
) and Riemann–Atangana–Baleanu ($ABR$
A
B
R
) fractional derivatives with respect to another function, from fractional order $\mu \in (0,1]$
μ
∈
(
0
,
1
]
to an arbitrary order $\mu \in (n,n+1]$
μ
∈
(
n
,
n
+
1
]
, $n=0,1,2,\dots $
n
=
0
,
1
,
2
,
…
. Also, their corresponding Atangana–Baleanu (AB) fractional integral is extended. Additionally, several properties of such definitions are proved. Moreover, the generalization of Gronwall’s inequality in the framework of the AB fractional integral with respect to another function is introduced. Furthermore, Picard’s iterative method is employed to discuss the existence and uniqueness of the solution for a higher-order initial fractional differential equation involving an $ABC$
A
B
C
operator with respect to another function. Finally, examples are given to illustrate the effectiveness of the main findings. The idea of this work may attract many researchers in the future to study some inequalities and fractional differential equations that are related to AB fractional calculus with respect to another function.