Israel hacked a popular Iranian prayer app to send notifications to potentially millions of phones Saturday morning urging the country’s military personnel to defect from the regime and join a fight to liberate the country, according to people familiar with the matter.