If Allah Knows my Destiny why will He Punish me!!!

If Allah knows my predestination why will He punish me!!!! On free will and predestination ⇓ Prophet Muhammad said “There is none