A sermon uses ammā baʿd after praise and ends with a fitting prayer. What functions do these perform?

Final Chapter: Excellence of Opening, Barāʿat al-Istihlāl, Transition and Conclusion