No, but it is illegal for a business that is a public accommodation to offer discounts based on religious discrimination.
If I remember correctly they didn’t offer the discount to everyone who prayed. They offered it randomly to some people who prayed.