It depends
Out in the open the Prophet ﷺ discouraged it. But Ibn Umar saw him sitting differently in a house. Many scholars therefore allow it in buildings, others avoid it everywhere.
Source: Sahih al-Bukhari 144, 148 · Sahih Muslim 264
Prayer & fasting · Is it halal?
Out in the open the Prophet ﷺ discouraged it. But Ibn Umar saw him sitting differently in a house. Many scholars therefore allow it in buildings, others avoid it everywhere.
Source: Sahih al-Bukhari 144, 148 · Sahih Muslim 264
A simplified overview from a Sunni perspective. Where scholars disagree, the answer is “it depends”. For personal questions, ask an imam or scholar you trust.