Mishkat al-Masabih 1700
عَنْ عُرْوَةَ بْنِ الزُّبَيْرِ قَالَ: كَانَ بِالْمَدِينَةِ رَجُلَانِ أَحَدُهُمَا يَلْحَدُ وَالْآخَرُ لَا يَلْحَدُ. فَقَالُوا: أَيُّهُمَا جَاءَ أَوَّلًا عَمِلَ عَمَلَهُ. فَجَاءَ الَّذِي يَلْحَدُ فَلَحَدَ لِرَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ. رَوَاهُ فِي شَرْحِ السّنة
From ʿUrwah ibn az-Zubayr, who said: There were two men in Madinah, one of whom would dig a lahd and the other would not dig a lahd. They said: "Whichever of them comes first will do his work." The one who dug a lahd came, so he dug a lahd for the Messenger of Allah ﷺ. Reported in Sharh as-Sunnah.