We prove an identity of Kloosterman integrals which is the fundamental lemma of a relative trace formula for the general linear group in $n$ variables.