What to say to console someone in Islam

Is it allowed to send condolences to the family of the dead person It should be known that the condolence of a Muslim to his Muslim brother is legitimate, and one of the rights of the brotherhood of Muslims; Because…
