In the fifth year, etc. Yehoshophot crowned Yorom [who reigned] two years during his lifetime, when they returned from the war they had waged with the king of Mo’av;14See Radak’s commentary pertaining to Rashi’s calculation. so it was taught in Seder Olam. In the fifth year of Yehorom[’s reign], which is the fiftieth1 year of Yehoshophot, it was decreed for Yehoshophot to be killed in Ramos-Gilad, but [the decree] was reprieved for seven years because he cried out.
(ב) (מלכים ב א׳:י״ז) וימת כדבר ה' אשר דבר אליהו וימלוך יהורם תחתיו בשנת שתים ליהורם בן יהושפט מלך יהודה אפשר לומר כן והלא יהושפט מלך אחריו ה' שנים אלא כיון שהלך יהושפט מלך יהודה עם אחאב מלך ישראל לרמות גלעד נגזרה גזירה על יהושפט ליהרג שנאמר (מלכים א כ״ב:ל״ב) ויהי כראות שרי הרכב את יהושפט וגו' ראוי ליהרג באותה שעה אלא מלמד שבשכר זעקה שזעק תלה לו הכתוב שבע שנים והיה [מונין] לבנו.
...Since Yehoshaphat King of Judah went with Ahab King of Israel to Ramot Gilad, the heavenly decree was stated that he should be killed. He was fitting to be killed at that time, but his cries that he cried out to God gave him a seven year reprieve, but those years were counted to his son's reign.
