G-6.2
It is recommended to say:
1- to a Muslim who has lost a Muslim relative, "May Allah greaten your reward, perfect your consolation, and forgive your deceased";
2- to a Muslim who has lost a non-Muslim relative. "May Allah greaten your reward and perfect your consolation";
3- and to a non-Muslim who has lost a Muslim relative, "May Allah perfect your consolation and forgive your deceased."