Analysis of information sources in references of the Wikipedia article "In Memoriam: President Garfield's Funeral March" in English language version.
Sousa was not well acquainted with the President, but he was greatly shaken at the news of his assassination. In the autobiography he tells of hearing paperboys shouting the news of Garfield's death. It was unexpected, because the President had been recovering satisfactorily from the gunshot wound of two months earlier. Shocked, Sousa rose from his bed and went outside for a walk. With the event weighing heavily on his mind he walked all through the night and into the next morning. When he returned home he immediately committed the dirge "In Memoriam" to paper. The dirge was played by the U. S. Marine Band as the President's body was received in Washington and then again at its final resting place in Cleveland. It was afterward played infrequently by the Marine Band until half a century later, when it was played while John Philip Sousa's body was being escorted to the grave in Congressional Cemetery.