TT #5 · Parashas Vayeitzei · Passuk 28:11
And he came upon the place and lodged there because the sun had set, and he took from the stones of the place and placed them at his head, and he lay down in that place.
Torah Temimah points to Sanhedrin 95b.
TT lemma: כי בא השמש.
English: After he prayed he intended to return. The Holy One, blessed be He, said: Shall this righteous man come to My lodging-place and depart without lodging? Immediately the sun set.
Derash on the verse (Bavli sugya) — not a formal named middah of the 13. The wording “ki va hashemesh” is taken to indicate an unnatural, purposeful setting of the sun.
Hashem caused the sun to set early so that Yaakov would spend the night at the place destined for the Beis HaMikdash.