The mentioned wording is an indication of the fact that we are human beings owned by Almighty Allah and that His power manages us and we are under His ruling. There is nothing wrong in saying the mentioned words when hearing of the death of a Muslim or a non-Muslim since God's power is all-encompassing.