Allah says: "Those are the ones of whom Allah knows what is in their hearts" regarding polytheism and hypocrisy.