Questions may express rebuke (التوبيخ), blaming a deed or failure; derision (التهكم), apparently asking or praising while mocking an attitude; or deeming something remote (الاستبعاد). None of these necessarily seeks information.
«أَصَلَاتُكَ تَأْمُرُكَ أَنْ تَتْرُكَ مَا يَعْبُدُ آبَاؤُنَا»
Does your prayer command you to abandon what our forefathers worship?
The question is a sarcastic challenge, not an impartial inquiry about a legal rule. “Fa-annā lahumu al-dhikrā” communicates the remoteness of benefiting from a reminder after the opportunity has been neglected. Distinguishing these purposes requires attention to the speaker's stance, the addressee and the surrounding discourse.