Passage
and, having opened his mouth, he taught them, saying,
and, having opened his mouth, he taught them, saying,
Matthew 5:1 But seeing the crowds, he went up into the mountain, and having sat down, his disciples came to him;
Matthew 5:2 and, having opened his mouth, he taught them, saying,
Matthew 5:3 Blessed [are] the poor in spirit, for *theirs* is the kingdom of the heavens.
Matthew 5:4 Blessed they that mourn, for *they* shall be comforted.
The verse centers on "having", "opened", "mouth", "taught", and "saying". It is saying that the verse draws attention to "having" and "opened", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 1's "But seeing the crowds he went up..." into verse 3's "Blessed are the poor in spirit for...", so "having" and "opened" belong inside that flow. In Matthew context, the local focus is Christ, faith, and discipleship.
A plain takeaway is to answer the verse's own emphasis on "having" and "opened" with trust shaped by these words, not by a vague optimism outside the passage.