All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His Slave and Messenger.
We do not know of a supplication in the Noble Quran or the Sunnah that prevents the decomposition of one’s cadaver. As far as we know, there is no authentic evidence in Islam indicating that the cadaver of any person is excluded from decomposition after burial, apart from the Prophets, may Allaah exalt their mention. The Prophet said: “Allaah, The Exalted, has prohibited the earth from consuming the bodies of Prophets.” [Abu Daawood]
However, a supernatural event may occur to honor someone other than the Prophets when Allaah preserves their cadavers from decomposing in the earth. This is evidenced by real incidents. For more benefit, please refer to Fatwa 84233.
On the other hand, we could not find any textual indication of a benefit that the deceased Muslim gains out of the decomposition of his cadaver. Also, we do not know of any texts that mention the impact of the righteous deeds on (preventing) the decomposition of the Muslim's cadaver.
We would like to advise the dear questioner to submissively accept the religious texts and not to preoccupy himself with asking about details that the texts did not clarify, and are of no benefit to investigate. Some scholars have underlined that raising excessive questions about matters that are not open for questions was a reason for people's aberrance and deviation. Ibn Battah wrote in Al-Ibaanah, “Know, my dear brothers, that I have pondered over the reasons that led groups of people astray, and drove them away from the path of Ahlus-Sunnah Wal-Jamaa‘ah to (tread) the path of religious innovations, and exposed their hearts to many calamities, and prevented the light of truth from illuminating their insights. I found two reasons for that: first, investigating matters of no significance, and raising so many questions about insignificant matters that do neither benefit nor incur any harm upon the believer; second, keeping the company of those from whose evil one cannot be totally safe and whose company corrupts the heart.” He cited Ahaadeeth that discourage raising so many questions (about insignificant matters). For example, the Prophet said: “… those who were before you were destroyed because of their excessive questioning and their opposition to their prophets...” [Al-Bukhari and Muslim]
Allaah Knows best.