R. Johanan also said: The son of David will come only in a generation that is either altogether righteous or altogether wicked. 'in a generation that is altogether righteous,' as it is written, Thy people also shall be all righteous: they shall inherit the land for ever. 'Or altogether wicked,' as it is written, And he saw that there was no man, and wondered that there was no intercessor; and it is [elsewhere] written, For mine own sake, even for mine own sake, will I do it.
---Talmud, Sanhedrin 98a
==================================================
==========================================
Our Rabbis taught: in the seven year cycle at the end of which the son of David will come-in the first year, this verse will be fulfilled: And I will cause it to rain upon one city and cause it not to rain upon another city; (2) in the second, the arrows of hunger will be sent forth; (3) in the third, a great famine, in the course of which men, women, and children, pious men and saints (4) will die, and the Torah will be forgotten by its students; in the fourth, partial plenty; (5) in the fifth, great plenty, when men will eat, drink and rejoice, and the Torah will return to its disciples; in the sixth, [Heavenly] sounds; (6) in the seventh, wars; and at the conclusion of the septennate the son of David will come.
(2) ibid. IV, 7.
(3) I.e., not actual famine, but the first signs thereof, no one being completely satisfied.
(4) Lit., 'men on whose behalf miracles occur.' - Jast.
(5) Lit., 'plenty and no plenty'.
(6) Either Heavenly voices announcing the advent of Mashiach, or the blasts of the great Shofar; cf. Yeshayahu (Isa.) 27:13.
---Talmud, Sanhedrin 97a
==================================================
==========================================
"Raba replied: Because they [Yisra'el] are destined to be redeemed in the seventh year [of the coming of the Messiah], (22) therefore the mention of redemption was placed in the seventh blessing. The Master said: "In the sixth year [of Messianic septenary], sounds will be heard; in the seventh, there will be wars, and at the end of the seventh, the Son of David will come. Wars are the beginning of Redemption."
---Talmud, Megila 17b
==================================================
==========================================
"And this is for you the sign [of the coming of the Mashiach]: that you see a septenary which begins with rain; in the second year, arrows of famine are sent out; in the third, there is great famine; and in the fourth - neither hunger nor plenty; in the sixth - great plenty, and a star will grow from the east with a staff on its head, and that is the star of Yisra'el...and if it lights up, it is for the benefit of Yisra'el, and then will sprout up Mashiach ben David. And this is the sign for you: When you see the eastern Nero (i.e., emperor) in Damascus has fallen, and the kingdom of the Children of the East has fallen, then will salvation sprout up for Yisra'el, and Mashiach ben David will come, and they will ascend to Yerushalayim and enjoy it...May Elohim in His mercy send us the Redeemer rapidly in our days, Amen."
---Nistarot R. Shim'on ben
Yohai, BhM 3:82
==================================================
==========================================
This is also hinted at in the verse "the sceptre shall not depart from Judah nor the ruler's staff from between his feet", "the sceptre" referring to the Messiah of the house of Judah, and "the staff" to the Messiah of the house of Joseph. "Until Shiloh cometh": this is Moses, the numerical value of the two names Shiloh and Moses being the same.
---Zohar, Volume 1, Page 25b
==================================================
==========================================
Wherewith thine enemies have reproached, O Lord,' wherewith they have reproached the footsteps of thine anointed.]8 it has been taught, R. Judah said: in the generation when the son of David comes, the house of assembly9 will be for harlots, Galilee in ruins, Gablan lie desolate,10 the border inhabitants11 wander about from city to city, receiving no hospitality, the wisdom of scribes in disfavour, God-fearing men despised, people12 be dog-faced,13 and truth entirely lacking, as it is written, Yea, truth faileth, and he that departeth from evil maketh himself a prey.14 What is meant by 'yea, truth faileth [ne'edereth15 ]'? The Scholars of the School of Rab16 said: This teaches that it will split up into separate groups17 and depart.18 What is the meaning of 'and he that departeth from evil maketh himself a prey [mishtollel19 ]'? The School of R. Shila said: He who departs from evil will be dubbed a fool by his fellow-men.20
(8) Ps. LXXXIX, 52.
(9) Where scholars assemble.
(10) [Gaulan, E. of the Sea of Galilee and the upper Jordan].
(11) The Jews living by the borders of Palestine. ,hzd habt the men of (the Hall of) Hewn Stones, I.e., the Sanhedrin.
(12) Lit., 'the face of the generation.'
(13) I.e., brazen, without shame of each other.
(14) Isa. LIX, 15.
(15) ,rsgb
(16) V. p. 387, n. 7.
(17) ohrsg ohrsg 'Adarim, 'adarim. ,rsgb is connected with rsg, meaning 'drove,' 'group.'
(18) Probably meaning that there will be so many conflicting opinions as to what is the truth as to render it, for all practical purposes, inaccessible.
(19) kku,an
(20) Cf. Job XII, 17: He leadeth counsellors away spoiled (kkua) and maketh the judges fools. Sholal being parallel to 'fools', it bears the same connotation.
---Talmud, Sanhedrin 97a
==================================================
==========================================
Finally, of the royal Messiah it is written, And the spirit of the Lord shall rest upon him, the spirit of wisdom and understanding, the spirit of counsel and might, the spirit of knowledge and of the fear of the Lord (Isa. XI, 2).
---Genesis Rabbah 97