Haram
The Prophet ﷺ said: if the one passing knew what he takes upon himself, he would rather wait forty.
Source: Sahih al-Bukhari 510 · Sahih Muslim 507
Prayer & fasting · Is it halal?
The Prophet ﷺ said: if the one passing knew what he takes upon himself, he would rather wait forty.
Source: Sahih al-Bukhari 510 · Sahih Muslim 507
A simplified overview from a Sunni perspective. Where scholars disagree, the answer is “it depends”. For personal questions, ask an imam or scholar you trust.