Prophet Muhammad ﷺ said :
Whomsoever gives ghusl to a deceased and conceals his defects, will be forgiven forty times. Whomsoever enshrouds a deceased person, Allah will clothe him with the fine silk of Jannah. Whoever digs a grave for a deceased person and buries him, will receive the reward of giving him a place to reside in till the Day of Qiyamah.
(Mustadrak Hakim, vol. 1 pg. 354)