Edit. A stronger version of the formula is true (details follow).
Let $(a_n)_{n \ge 1}$ be a sequence of complex numbers, $(\lambda_n)_{n \ge 1}$ a nondecreasing sequence of positive reals such that $\lambda_n \to \infty$ as $n \to \infty$, and $f$ a function $\mathbf R^+ \to \mathbf C$ that admits a derivative $f^\prime(x)$ at all but countably many points $x \in [\lambda_1, \infty[$. Then, for $x \ge \lambda_1$ we have $$\sum_{n:\lambda_n \le x} a_n f(\lambda_n) = A(x) f(x) - \int_{\lambda_1}^x A(t) f^\prime(t) dt,$$ where we take $A(t) := \sum_{n: \lambda_n \le t} a_n$ for all $t \in \bf R$ and the integral on the right-hand side is understood in the sense of Henstock and Kurzweil.
This is a (straightforward) generalization of Abel's summation formula in two ways: First, $f^\prime$ is not required to be continuous or to exist everywhere in $[\lambda_1, \infty[$, and second, we don't assume $\lambda = n$ for all $n$.
A weaker version of the above variant of Abel's summation formula is mentioned, e.g., in some lecture notes by Alessandro Zaccagnini (Theorem A.1.1, p. 175), where $f$ is actually continuously differentiable (not that this makes any serious difference from the point of view of the proof, if you are already familiar with Theorem 4.7 in Bartle's A Modern Theory of Integration).
Question. Do you know of a more standard source where I can find it?
I would like to cite it in something we are writing, but all the sources that I've so far checked (*) deal with the classical version where $\lambda_n = n$ for all $n$ and $f^\prime$ exists and is continuous everywhere in $[\lambda_1, \infty[$.
Of course, we could just say that the proof of the classical formula carries over almost verbatim, or include a sketchy proof of the result, but a reference would be better (at least in my head).
(*) To wit, Theorem 4.2 in Apostol's Introduction to Analytic Number Theory, Theorem 1 in Chapter I.0 of Tenenbaum's Introduction to analytic and probabilistic number theory, Theorem A.2.3 in Pollack's Not Always Buried Deep: Selections from Analytic and Combinatorial Number Theory, and Theorem A.4 in Nathanson's Additive Number Theory: The Classical Bases.