user19249: there is a meditation technique that supposedly was given to  v. moggalana by buddha wrote here like this:

“If you do not abandon your drowsiness by doing that, Moggallāna, then
you should pay attention to the perception of light – the night as the
day, the day as the night. In this way you should develop an open
mind, a mind of unveiled radiance. By doing this it is possible that
you will abandon your drowsiness.

but then another script is saying it's delusion:

“There are some contemplatives & brahmans, brahman, who have the
perception of ‘day’ when it is night, and of ‘night’ when it is day.
This, I tell you, is their being in a dwelling of delusion. As for me,
I have the perception of ‘day’ when it is day, and of ‘night’ when it
is night. If anyone, when speaking rightly, were to say, ‘A being not
subject to delusion has appeared in the world for the benefit &
happiness of many, out of sympathy for the world, for the welfare,
benefit, & happiness of human & divine beings,’ he would rightly be
speaking of me.

which one is correct?  both? or perhaps it depends on context?  what is the context?
a related post:
How to "attend to the perception of light"?

user23952: I think that there are similarities between the two suttas that you quote: Both refer to "perceptions" (fabrications / saṅkhāra).
In the first sutta, the Buddha (Or is it just a daydream while nodding, a delusion?) urges Ven. Mahā Moggallāna to use perception skillfully to help keep himself awake (and also aware that perceptions are fabricated).
In the second sutta, the Buddha points out that sometimes we have mistaken perceptions (like those mentioned in the sutta that give rise to fear and terror), and use them unskillfully, and thereby delude ourselves.
Regarding a "line" between delusion and imagination: I think of them as different things. One is mistaking belief for truth, the other is a very conscious mental fabrication.

19249: <p>there is a meditation technique that supposedly was given to  v. moggalana by buddha wrote <a href="http://bhantesuddhaso.com/teachings/sutta/an-7-61-pacalayamana-sutta/" rel="nofollow noreferrer">here</a> like this:</p>
<blockquote>
<p>“If you do not abandon your drowsiness by doing that, Moggallāna, then
you should pay attention to the perception of light – the night as the
day, the day as the night. In this way you should develop an open
mind, a mind of unveiled radiance. By doing this it is possible that
you will abandon your drowsiness.</p>
</blockquote>
<p>but then another <a href="https://www.dhammatalks.org/suttas/MN/MN4.html" rel="nofollow noreferrer">script</a> is saying it's delusion:</p>
<blockquote>
<p>“There are some contemplatives &amp; brahmans, brahman, who have the
perception of ‘day’ when it is night, and of ‘night’ when it is day.
This, I tell you, is their being in a dwelling of delusion. As for me,
I have the perception of ‘day’ when it is day, and of ‘night’ when it
is night. If anyone, when speaking rightly, were to say, ‘A being not
subject to delusion has appeared in the world for the benefit &amp;
happiness of many, out of sympathy for the world, for the welfare,
benefit, &amp; happiness of human &amp; divine beings,’ he would rightly be
speaking of me.</p>
</blockquote>
<p>which one is correct?  both? or perhaps it depends on context?  what is the context?</p>
<p>a related post:
<a href="https://buddhism.stackexchange.com/questions/10528/how-to-attend-to-the-perception-of-light">How to &quot;attend to the perception of light&quot;?</a></p>
 23952: <p>I think that there are similarities between the two suttas that you quote: Both refer to &quot;perceptions&quot; (fabrications / saṅkhāra).</p>
<p>In the first sutta, the Buddha (Or is it just a daydream while nodding, a delusion?) urges Ven. Mahā Moggallāna to use perception skillfully to help keep himself awake (and also aware that perceptions are fabricated).</p>
<p>In the second sutta, the Buddha points out that sometimes we have mistaken perceptions (like those mentioned in the sutta that give rise to fear and terror), and use them unskillfully, and thereby delude ourselves.</p>
<p>Regarding a &quot;line&quot; between delusion and imagination: I think of them as different things. One is mistaking belief for truth, the other is a very conscious mental fabrication.</p>
