The reward of deeds depends upon the intentions and every person will get the reward according to what he has intended.
Sahih al-Bukhari (Book 1, Hadith 1)
Hadith are recorded in collections called "mussannaf," which are compiled by Islamic scholars and transmitters of hadith. These collections include information about the chain of transmission (isnad) for each hadith, as well as the content of the hadith itself.
Hadith literature covers a wide range of topics, including religious obligations and practices, legal issues, moral conduct, and the conduct of the Prophet Muhammad (SAW). Hadith are also used to supplement and explain verses in the Quran, and to provide examples of the Prophet's teachings and actions, which serve as a model for Muslims to follow.
The authenticity and reliability of hadith is of crucial importance, and Islamic scholars have developed a methodology for evaluating the authenticity of hadith based on the chain of transmission (isnad) and the reputation of the narrators. Hadiths that meet the standards of authenticity are considered to be "sahih" (authentic) and are considered to be reliable sources of guidance for Muslims.