Nowadays, people can get information easily including about fiqh and hadith as a source of Islamic law. The problem is, there are so many articles about jurisprudence whose understanding refers to the laws or rules relating to the hadith whose validity cannot be ascertained. The study aims to determine the degree of similarity between the hadith contained in articles with reliable sources such as books and books. One of the outputs of this study is an application that can determine the similarity of hadith using Cosine Similarity and Boyer Moore by matching strings starting from the right position to the leftmost position and using the cosine similarity method to determine the similarity based on the calculation of the distance between vectors A and B that produce angles cosine x between the two vectors. In the testing phase, the proposed model can run as planned. In one test scenario, the number of keywords tested was 9 cases compared to the categories in the database with an accuracy of 80%. And determine the similarity of two or more objects Using the cosine similarity method with weights The percentage of similarity is proportional to the sample of words entered, which is equal to 36%.