I have a question which is troubling me.
Allah says in the Quran to Prophet Muhammad pbuh that you do not know about hypocrites around you, but then in surah Taubah, Allah instructs the Prophet pbuh to not offer funeral prayers for them. How would Prophet know who is a munafiq, if Allah says you do not about munafiqs, and how can he know whose funeral prayer he should not offer.
Thanks in advance for your time and efforts.