Saṃyutta Nikāya 4
Connected Discourses with Mara
On one occasion the Blessed One was dwelling at Rajagaha in the Bamboo Grove, the Squirrel Sanctuary. Then, when the night was fading, the Blessed One, having spent much of the night walking back and forth in the open, washed his feet, entered his dwelling, and lay down on his right side in the lion’s posture, with one leg overlapping the other, mindful and clearly comprehending, having attended to the idea of rising.
The Blessed One:
Then Mara the Evil One … disappeared right there.