Are you worried about donating in charity before your submission to the Messenger (blessings and peace be upon him) in secret? So when you did not do (that) and Allah lifted from you probe (i.e. relaxed this restriction), then establish Prayer and pay Zakat (the Alms-due) and obey Allah and His Messenger (blessings and peace be upon him) persistently. And Allah is Well Aware of all the deeds that you do.