Check "Recently Deleted" in your iPhone's Photos app to see if your deleted photo is still there. If it is, select it and then tap "Recover." You can restore your iPhone from a macOS or iCloud backup.