A Muslim must pay the Zakah due on his wealth immediately after the passing of a full Hawl (one lunar year calculated from the time a property reaches the minimum amount upon which Zakah is due) while the money is in his possession. If he delays the payment of Zakah without a legal excuse, he will be considered sinful and must pay all the due Zakah at once even if he missed several years.Thus, you must pay the Zakah due on the mentioned sum for all the past years beginning from the end of the first Hawl after this sum came into your possession and the payment should be at once. You should also endeavor to make sincere Tawbah (repentance to Allah)
for the sin of delaying the payment of Zakah. There is no Zakah on the 30,000 riyals that you took 3 years ago, after they were no longer in your possession but you should pay the Zakah due on them during the past years i.e. 13 years.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.